Closing Application

Can the X button on the Mdi_Form be enabled an d disenabled.
For example have it enabled just when it is the mdi_form and dienabled when it is a child form. If so what property do I set.
Who is Participating?
myqlGConnect With a Mentor Commented:
Check into the Query_unload event.
and set the cancel=true
this will stop the closing of the form.

Set the ControlBox to false on the child forms. This will remove the X and the control box on the top left of the form.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.