form.Showdialog VS form.show  
Author Message
tomas2





PostPosted: Thu Nov 20 11:44:44 CST 2003 Top

Visual Basic [VB] >> form.Showdialog VS form.show

I have been using form.show to display my forms yet I see a lot of
people using form.Showdialog.

What are the differences and when is one better than the other or are
they the same...?

-Ivan

*** Sent via Developersdex http://www.hide-link.com/ ***
Don't just participate in USENET...get rewarded for it!

Visual Studio103  
 
 
Armin





PostPosted: Thu Nov 20 11:44:44 CST 2003 Top

Visual Basic [VB] >> form.Showdialog VS form.show
> I have been using form.show to display my forms yet I see a lot of
> people using form.Showdialog.
>
> What are the differences and when is one better than the other or
> are they the same...?

Use Showdialog whenever you want to prevent the user from changing the
calling form as long as the modal form is shown.


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

 
 
hirf-spam-me-here





PostPosted: Thu Nov 20 12:26:55 CST 2003 Top

Visual Basic [VB] >> form.Showdialog VS form.show
> I have been using form.show to display my forms yet I see a lot of
> people using form.Showdialog.
>
> What are the differences and when is one better than the other or are
> they the same...?

Why not test it on your own or have a look at the docs for the form's
'Show' and 'ShowDialog' methods?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
 
Cor





PostPosted: Thu Nov 20 12:27:33 CST 2003 Top

Visual Basic [VB] >> form.Showdialog VS form.show Hi Ivan,

For a dialog I find showdialog much simpler to use, but that is maybe a
matter of taste.

It has the same behaviour as the opensavedialog, closedialog and other
dialogs, although for this one you have the showintaskbar propery to set to
false yourself if you don't want that.

Cor

> I have been using form.show to display my forms yet I see a lot of
> people using form.Showdialog.
>
> What are the differences and when is one better than the other or are
> they the same...?