Modal.....Modeless ?

Tinbeard

Member
Joined
May 30, 2005
Messages
16
Location
UK
Programming Experience
1-3
Can someone please briefly explain the basic difference between modal and modeless forms.
 
From www.webopedia.com:
A modal window is any type of window that is a child (secondary window) to a parent window and usurps the parent's control. It is commonly associated with an Internet Web site pop-up window that stays in front of the original window. A user may not press any controls or enter any information on the parent window (the original window which opened the modal) until the modal has been closed. A modal window is commonly used when the author wants to retain the user's focus on the information in the modal as it is impossible for the user to interact with the other windows of the same process.

A modeless window is a feature that was first introduced in Internet Explorer 5. It launches a secondary (child) window that stays active on the user's screen until dismissed. Modeless windows can be minimized or hidden behind other windows. Unlike a modal window, a modeless window will allow the user to continue working with the application while the modeless window is open.
 
in case you dont understand the technical stuff in Paszt's post:

basically a modal window takes complete priority over the rest of the application until the user closes (satisfies) the modal window

to make a window (form) modal simply call it's ShowDialog() method

a modaless window is like a buddy window to the application (call with the form's Show() method)
in MDI apps the child windows are all modaless
 
Back
Top