Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Application Security Testing: An Integral Part of DevOps

Making a System Modal Message

How can I make it so that a form will stay on top until the user presses a button? For example, an error message pops up, the user can't click elsewhere on the screen to close the window until he presses the button.

Using the MsgBox function, you can make a message System Modal, which will prevent them from doing anything in ANY application until they answer the question. When you use the MsgBox call, add in the MB_SYSTEMMODAL constant to the other constants which determine buttons, icons and such to display. The constant is listed in CONSTANT.TXT. For VB4, see the Help for MsgBox and use either vbApplicationModal or vbSystemModal.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date