Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping close event 2

Status
Not open for further replies.

scrano

Technical User
Jan 24, 2001
51
0
0
AU
Does anyone know if you can trap a close event for a form and have it hidden instead of closing altogether? Thanx in advance
 
Have you tried something like this using the form unload event:


Private Sub Form_Unload(Cancel As Integer)
Cancel = True
Me.Hide
End Sub


I don't know if this is exactly what you are looking for but basically it is cancelling the form from unloading completing and just hiding it instead.

Hope this helps....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top