By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

How can i get form if it is loade or not?

P: n/a
hi,
how can i use isdisposed method?
dim frm as new formX
frm.dispose --> yes, this property existing
frm.isdisposed --> but this porperty is not existing

i want to use this

dim frm as frmX
if frm.isdisposed then
frm=new frmX
frm.show
else
frm.select
endif
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "nomenklatura" <il******@operamail.com> scripsit:
how can i use isdisposed method?
dim frm as new formX
frm.dispose --> yes, this property existing
frm.isdisposed --> but this porperty is not existing


Add a handler to the form's 'Closed' event and set the variable pointing
to the form to 'Nothing' there. Then check if the reference is
'Nothing':

\\\
If foo Is Nothing Then
foo = New FooForm()
...
Else
...
End If
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.