I have 2 forms Form1 and Form2, when program executes I want both forms to display but Form2 with ShowDialog(); i.e user has to respond to Form2 before using Form1. How can I achieve this?
Form2 will take userinput and will display on Form1, so do I have to hide Form2 after user responds to Form2 or just kill it.
If you use
ShowDialog, Form2 will automatically be hidden when hits OK or Cancel (assuming you’ve set theDialogResultproperty for any relevant buttons) but you will still need to dispose of it. You can do something like this: