?
Solved

Not close but not visible

Posted on 2006-11-16
2
Medium Priority
?
143 Views
Last Modified: 2010-04-30
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.
0
Comment
Question by:Yury Merezhkov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 17960972
me.Hide
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 17960981
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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question