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!

disable close button in MsgBox

Status
Not open for further replies.

GelC

Technical User
Oct 3, 2006
93
US
Hi guys,
How can I disable close button on message box?
I tried this but it didn't work, Thanks for any help
Code:
MsgBox "No result found. Please try again", vbInformation, "No record found"
CloseButton(vbIformation) = False

GelC
 
you can't, as far as I know.

what you can do is to build your own messageBox form, and use that instead.

--------------------
Procrastinate Now!
 
msgbox "This will disable the X button!", vbOKOnly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top