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

Msgbox (disable X button)

Status
Not open for further replies.

VBAva

Programmer
Jul 29, 2003
87
0
0
IE
morning all :)
i think this much be pretty easy but mornings and thinking dont really go together.

i have a message box with yes and no on it, and the user HAS to pick yes or no, how can i desable the little X in the top corner to force then to pick something??
i know with user forms you can use QueryClose and CloseMode but does this work with message boxes??

thank you
Ava
 
Hhmmmmm interesting....

In a message box, if you have vbYesNo or vbAbortRetryIgnore the X button is automatically disabled (never noticed before)
but for all the other button combinations (
vbOKCancel, vbOKOnly, vbRetryCancel, vbYesNoCancel, vbSystemModal) it is enabled!

So what if you want it enabled for vbYesNo and disabled for vbOkOnly??

Ava
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top