Calling new form from form

dark_prince69

New member
Joined
Nov 9, 2022
Messages
1
Programming Experience
Beginner
I would like to call a new form from another form but the problem is that the new form called hides when selecting another application and i can only see the base form

I want to be able to select the application and that the called form be on top of the base form and not be able to interact with the base form, only with the new called form

Thank you for the help
 
To prevent interaction with first form (without hiding or disable it) the second form must be shown as a dialog with ShowDialog method. Typical use short-lived dialogs.

If you only want the second form to always display in front of first form the Owner property can be set, or using the Show(owner) method. Typical use long-lived tool windows. These also minimize/restore and close along with owner form.
 
Back
Top