Search code examples
c#winformsmessagebox

can messageDialogs contents be customized


I am using message dialog and I want to customize the contents like increasing the titles fontsize and changing the fontweight. also I want to use multi lines.

I want my message dialog to look like these

TITLE(bigger and bolder)
1- nnnnnnnnnnnnnnnnnnnnn
2- kkkkkkkkkkkkkkkkkkkkk
3- lllllllllllllllllllll
4- hhhhhhhhhhhhhhhhhhhhh

                      OK

how can I customize the body and title?


Solution

  • There's not a lot you can do, possibly better off creating your own. However you can insert linbreaks via Environment.NewLine e.g.

    MessageBox.Show("some text" + Environment.NewLine + "some more text");