How do I show my form as a modal dialog?
To show your form as the Modal dialog, call the ShowDialog() method of the form to display it on the screen.
C# Version
myForm.ShowDialog();
VB.NET Version
myForm.ShowDialog()
It will display the form as a Modal dialog and would not allow the user to access any other form of the application when it is present on the screen.
Index