Still can't close mdi child form

Please report bugs

Still can't close mdi child form

Postby bobr » Sun Jun 12, 2011 10:19 am

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.
bobr
 
Posts: 31
Joined: Fri Mar 18, 2011 10:30 pm

Re: Still can't close mdi child form

Postby Henning » Sun Jun 12, 2011 9:37 pm

Hi,

Try Me.Close without the parens.

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: Still can't close mdi child form

Postby bobr » Mon Jun 13, 2011 1:33 pm

Makes no difference!
bobr
 
Posts: 31
Joined: Fri Mar 18, 2011 10:30 pm


Return to Bug-Reports

cron