TheNoob
TheNoob

Reputation: 929

C# .NET & Messageboxes the user cant ignore

So I have failed to find anything that works...

But what I want a messagebox that wont allow the user to do ANYTHING untill he or she has clicked ok.

So if they were to say...Click outside the message box. it would beep and blink at them untill ok is clicked.

Is this done through the properties on the left hand side for the main parent form? Or is this all done through programming?

Thanks everyone.

Upvotes: 0

Views: 121

Answers (2)

Brian
Brian

Reputation: 5119

This question has been answered in this post, but in a nutshell, you need to set the MessageBoxOwner property to the main UI window.

Upvotes: 2

Inisheer
Inisheer

Reputation: 20794

Show the window using the .ShowDialog() method.

Upvotes: 6

Related Questions