Example image:
I just want to know how to click something on the parent form while the child is active!
Why I want it: Users may need to access one dialog while looking at another.
Displaying a form with call:
new Form2().showDialog();
Will not allows you to click on the form1
.
new Form2().show();
Will allow you to click parent form1
.
Suggested by David Pilkington .
I fixed it by going from:
form.ShowDialog(this);
to:
form.Show(this);
thank you!
quite simply (re-factored) you can use this.
//Open as dialog
new Form2().showDialog();
//Open as new instance
f2 = new Form2();
f2.Show();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.