I
Iain
I would like to prevent the user from closing MDI child windows. However, I
would like them to be able to minimize and maximize them.
Setting the Control Box to false removes the minimize and maximize too.
An obvious thing to do is to handling the CLosing event and cancel it.
Sadly, if you do this the main Form refuses to shut down...
A solution to this is to intercept the Closing event on the main form and
use it to set a boolean that the children can check to see if they CAN close
down.
But this is raised *after* the childrens events.
Hmmm.
Any one know how I can sort this out?
Iain
would like them to be able to minimize and maximize them.
Setting the Control Box to false removes the minimize and maximize too.
An obvious thing to do is to handling the CLosing event and cancel it.
Sadly, if you do this the main Form refuses to shut down...
A solution to this is to intercept the Closing event on the main form and
use it to set a boolean that the children can check to see if they CAN close
down.
But this is raised *after* the childrens events.
Hmmm.
Any one know how I can sort this out?
Iain