"dialog" vs "form"

  • Thread starter Thread starter tom
  • Start date Start date
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
 
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.
 
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.
 
Back
Top