|
-
Sep 4th, 2002, 08:09 AM
#1
Thread Starter
Junior Member
classes & forms
What is the best way to handle forms with classes?
I want to know/check (in another class) if a form is terminated.
When I use:
dim myfrm as new frm
sub showme
if not myfrm is nothing then frm.show vbmodeless -> is this the way??
end sub
in a class module.
Do I have to work with events then or must I define myfrm
global in a module.
When I use events:
dim withevents myfrm as new frm
sub showme
if not myfrm is nothing then frm.show vbmodeless
end sub
Private Sub myfrm_NotifyTerminate()
??? set myfrm = nothing -> will cause an internall error because it hasn't handled the sub terminate in the form
end sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|