I have shown a new form in button click on parent form like below,
Here the background parent form gets disabled when a new child form is activated.
Is there any available options to show the child form without disabling the parent form?
Regards,
I have shown a new form in button click on parent form like below,
Here the background parent form gets disabled when a new child form is activated.
Is there any available options to show the child form without disabling the parent form?
Regards,
The Show
function shows the form in a non modal form. This means that you can click on the parent form.
ShowDialog
shows the form modally, meaning you cannot go to the parent form
Application.Run()
runs the main parent form, and makes that form the main form. Application.Run() is usually found in main
.
If it is fully disabled (no interaction possible), you are using .ShowDialog()
on the child form instead of .Show()
. If you use .Show()
you will be able to use both forms
Example:
ChildForm childForm = new ChildForm();
childForm.Show();
after you open the new form and call this.Activate();
it will refocus on the parent window, but this will cause it to loose focus for a fraction of a second