In my winforms application I am using form.ActiveForm from another form a lot of times. This is because I don’t want a new instance of the form but just to bring the form to the front or to set it’s components differently. I noticed however that when I minimize the form, form.ActiveForm returns a NullReferenceException. What can I do so that I can access this minimized form? There doesn’t seem to be a method for it. Is there another way to do this?
Share
Use Application.OpenForms to find a form of the correct type: