PC Review


Reply
Thread Tools Rate Thread

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

 
 
nomenklatura
Guest
Posts: n/a
 
      3rd Aug 2004
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


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      3rd Aug 2004
* "nomenklatura" <(E-Mail Removed)> 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/>
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Temporary Form with 2 Sub form Update Main Form And its Sub form ? Jeanette Cunningham Microsoft Access Form Coding 0 25th Nov 2009 02:27 AM
loading Access when I already have a 2007 student Office pkg loade Bug Microsoft Access Getting Started 6 28th Jun 2009 11:27 AM
Can't make filter crosstabquery via criteria->build->forms-> Loade Bobi Microsoft Access 4 30th Jan 2009 04:30 PM
Com Add-in for Publishing a customized form in a public folder and setting this form as deafult form for the calendar Vidya Microsoft Outlook Program Addins 0 17th Sep 2007 09:47 AM
Canot loade Medieval totalwar patch... =?Utf-8?B?RGFuaWVs?= Windows XP Games 1 25th Dec 2006 06:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:27 PM.