Hey,

How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it as well, so how do I avoid that?

Use the query_unload event, set cancel to true and hide the form with me.hide or me.visible=false

Good Luck

Very clear and short, thank you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.