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:
01063675
Views:
8
>>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
>
Embarrassingly simple answer :) Of course there is a form property for this and the name even makes sense :)
Again I can't see the forest for all the trees :)
Thank you very much Chris.

Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform