• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Displaying Forms > Displaying Forms

Displaying Forms

There are really only three ways to display a form: You can set its Visible property to True, or your can call one of two methods, Show or ShowDialog. A bit of background: In the Windows environment, windows come in three varieties, which one modeless, application modal, and system modal. A modeless window is available to the user whenever it's visible on the screen, but it doesn't interfere with other operations. An application modal window stops all processing within the application until the window is closed. A system modal window stops all processing for all running applications until it is closed.

If you display a Form by setting its Visible property to show or by calling its Show method, the result will be a modeless window. If you use ShowDialog, the window will be application modal, and all processing in the application will stop until the window is closed. Well, technically, all processing in the thread stops, but best practice indicates that all of your user interface should be on a single thread to avoid synchronization issues, and in any event multithreaded programming is outside the scope of this book.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint