Are you blogging on PH? Get your free blog.
*/
*/

WinForm FAQ - Difference Between Modal and Non-Modal Dialogs

What is the difference between modal and non-modal dialogs?

The modal form, when displayed on the screen, does not allow you to go and select any other form of the window. The typical example of the Modal form is the Message Box; you must select OK (or other appropriate) button to go back to other forms of the applications.

The Non modal form, on the other hand, does not prevent you from accessing other form windows of the application, when they are present on the screen using the Show() method of the form.

C# Version

myForm.Show();


VB.NET Version

myForm.Show()


By default, all the forms are Non-modal.

Index
corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings