On Jul 7, 9:32*am, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> > I just want to know if a dialog is the same as a form ?
>
> Yes and no. *For your purposes, mostly yes. *You can design a dialog *
> exactly as a form, using the Visual Studio Designer. *Then, instead of *
> calling Form.Show() to display the form, call Form.ShowDialog(). *That *
> will display the form as a modal window, just as any dialog would be shown.
I agree with this statement, that Dialog Boxes** are just Forms that
pass and/or return data and return a DialogResult*, but for historical
reasons a dialog also has imbedded in it a so-called "message map"
that's a sort of macro to pass information to and from the user. At
least that's the way I think of it, based on Visual C++ MFC, which had
such a macro that you could not edit, but was generated by the VS
wizard.
RL
[resident C# n00b 'expert' or MVP of sorts]
* DialogResults include: Ignore, No, None, OK, Retry and Yes
** Common Dialog Boxes include: ColorDialog, FolderBrowserDialog,
FontDialog, OpenFileDialog, PageSetupDialog, PrintDialog and
SaveFileDialog
|