If I use close.me() on a child form, the form doesn't close.
With the following code:
Private Sub CommandButton1_OnEvent()
frmNewMain.enabled = TRUE
me.close()
End Sub
Private Sub Form_OnClose(ByRef Cancel As Boolean)
print "OnClose"
End Sub
Clicking the command button does nothing but enable the main form. Clicking the exit button in the corner of the form closes the form and sends a signal to Form_OnClose. It looks as if me.close() isn't generating an event.
One other thing about the child form.
When first loaded (from an entry in the menu bar) it occupies the entire space of the menubar form - totally ignoring the form's width and height properties. HOWEVER, if I close the form (with the exit button in its corner) then open it again, it opens at the correct size.