On Close

  • Thread starter Thread starter Junior
  • Start date Start date
J

Junior

I'm checking if controls contain data on form close
how can i stop the form from closing if data is missing?
is Close ther right event?
thanks
 
I'm checking if controls contain data on form close
how can i stop the form from closing if data is missing?
is Close ther right event?
thanks

You can't stop the form from closing once it reaches the close event.
Use the Form's Unload event.
There you can set
Cancel = true
to stop the form from closing.
 
Fred- thanks
fredg said:
You can't stop the form from closing once it reaches the close event.
Use the Form's Unload event.
There you can set
Cancel = true
to stop the form from closing.
 
Back
Top