Not close but not visible

Hi guys,

is there a way to make the form invisible when the user presses the close button or Alt + F4 instead of closing it?

Thanks in advance.
LVL 7
Yury MerezhkovDevelopment Team LeadAsked:
Who is Participating?
 
sirbountyConnect With a Mentor Commented:
Sorry, you'll need to place that in your Query_Unload:

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
me.Hide
Cancel=True
End Sub
0
 
sirbountyCommented:
me.Hide
0
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.