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

  • Thread starter Thread starter nomenklatura
  • Start date Start date
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
 
* "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
///
 
Back
Top