I have a form with a button on it.
the code under "onclick" event is like
sub buttononclick
DoFuction
Msgbox("Hello world")
end sub
Function DoFunction
Dim form1 as form
Set frm = New Form_f_form2
clnIdentificationForms.Add Item:=frm, Key:=CStr(frm.Hwnd)
Set frm = Nothing
end funct
form2 has a button bttnQuit which closes the form. If I run this situation now the messagebox pops up as soon as the form in the doFunction appears in staed of after the closing of that form. How can I hold the code until form2 is closed?
the code under "onclick" event is like
sub buttononclick
DoFuction
Msgbox("Hello world")
end sub
Function DoFunction
Dim form1 as form
Set frm = New Form_f_form2
clnIdentificationForms.Add Item:=frm, Key:=CStr(frm.Hwnd)
Set frm = Nothing
end funct
form2 has a button bttnQuit which closes the form. If I run this situation now the messagebox pops up as soon as the form in the doFunction appears in staed of after the closing of that form. How can I hold the code until form2 is closed?