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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close Buton on VB Forms 1

Status
Not open for further replies.

anastasia

Programmer
Dec 13, 2000
111
GB
Hi,

I was wondering how I get rid of the close button, located on the title bar at the top right hand corner on a VB form, as I do not want the user to be able to click on this and close the form when it is running.

Anyone know who to do this?.

Thanks.
 
anastasia,
You can disable the close button with an API call(DeleteMenu), let me know if the first solution doesn't satisfy you and I will post some code that you can use.
 
Thanks Loomah (TechnicalUser)

The code form this site works fine. I just copied the code into the form and hey presto, users cannot now close the form by clicking on the close button.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top