Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show() or Showdialog()?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01063608
Message ID:
01063671
Views:
8
This message has been marked as the solution to the initial question of the thread.
>My question is not whether to use Show() or ShowDialog(), or when to use one over the other :)
>
>My question is: Is it possible to find out, from inside the form object, if the form object was "displayed" using Show() or ShowDialog()?

I think you can use the Modal property of the form. In VB.NET:
If Me.Modal Then
   ' Form opened with .ShowDialog()
Else
   ' Form opened with .Show()
Endif
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform