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

N

nomenklatura

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
 
H

Herfried K. Wagner [MVP]

* "nomenklatura said:
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
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top