"dialog" vs "form"

T

tom

help:

in winforms
a) a dialog is a little component that goes in a form (checkbox, panel etc);
b) a form is a window that contains dialogs.

So why when you want to show a form do you say
frm.showDialog();

thanks
tom
 
S

Stephany Young

Not quite.

A 'control' is a little component that goes in a form (checkbox, panel
etc.).

Form is a generic term for a window.

A dialog is a specialised form, in that, generally, it can't be maximised or
minimised and one must respond to the dialog before one can carry on.

The frm.showDialog() method returns a result indicating what happened to the
dialog.
 
?

=?ISO-8859-1?Q?Christian_Fr=F6schlin?=

tom said:
a) a dialog is a little component that goes in a form (checkbox, panel etc);
b) a form is a window that contains dialogs.

No. What you call "dialog" is usually called a "control". Simple Forms
which are opened by your application in addition to the main form are
often called dialogs (e.g., File Open dialog, Search and Replace dialog)
frm.showDialog();

You can also use Show() to open the Form modeless.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top