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
