Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am looking for a way to force a message box or something like it to the top / front so that even if my program did not have focus my error message will show and have to be responded to . Like the old MB_SYSTEMMODAL. My program needs to keep responding to ongoing events and if the error message is hidden my program will miss the events.
Yes I realize that MB_SYSTEMMODAL was a bit rude but better to be rude then to let people go on thinking the program was capturing data until it was too late to fix anything.
Thanks In Advance
Posted

1 solution

You could:

0) force your app to be topmost when an error dialog needs to be displayed

1) Create your own messagebox class (derived from the .Net one), and set topmost to true on your class
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900