C# – MessageBox in c#

cmessagebox

I want to show messagebox to the user, such that the user cannot refuse to confirm the message box. User should not be allowed to do anything else in the screen until he confirms the messagebox.

This is a windows based c# application.

The main thing is, even if i use windows message box. Some times it is hiding behind some screen. But for my case, i want message box to be on top most whenever it appears.

I am using some other third party applications, which over rides my message box. I want to overcome this.

How to do this…

Best Answer

You will have to create your own form, make it modal, change the z-order to make it always on top, and capture all keystrokes and mouse clicks.

Always on top: http://www.codeguru.com/cpp/w-d/dislog/article.php/c1857

Related Topic