shekhar
shekhar

Reputation: 11

How to set Messagebox Color in C# .net 3.0?

How to set Messagebox Color in C# .net 3.0 ?

Upvotes: 1

Views: 1171

Answers (3)

anishMarokey
anishMarokey

Reputation: 11397

for that you need to create your own custom message box.

Upvotes: 1

Hans Olsson
Hans Olsson

Reputation: 55009

The MessageBox is just meant to be for very simple messages. If you need to customize it more than what it's designed to do I'd suggest that it would be better to write your own dialog to do it. It wouldn't take long to replicate the functionality you need from the MessageBox and it would be a lot easier to customize.

Upvotes: 1

Marc Gravell
Marc Gravell

Reputation: 1062780

If you mean "winforms", there isn't any property for that. You would have to create your own modal message dialog. You might be able to use P/Invoke, but I wouldn't bother, tbh.

Upvotes: 1

Related Questions