0

How to make "textboxUsername.text" text bold in this example?

MessageBox.Show("Username " + textBoxUsername.Text + " already exists! Please choose another one.", "Message");

Thanks.

Oggie
  • 71
  • 1
  • 6
  • 1
    make a customize messageBox, read about it [here](http://stackoverflow.com/questions/6932792/how-to-create-a-custom-messagebox) – isamirkhaan1 Oct 16 '16 at 13:27
  • 1
    You can't do it natively. This might help. [http://stackoverflow.com/questions/2259027/bold-text-in-messagebox](http://stackoverflow.com/questions/2259027/bold-text-in-messagebox) – Nikhil Oct 16 '16 at 13:28

2 Answers2

1

Check this out:

Bold Some Text in MessageBox

Timothy Ghanem
  • 1,606
  • 11
  • 20
1

This is no possible, as the MessageBox API exposes to text-formatting options.

The best way is to create your own form and make it look like a message box (this isn't so hard, it's just a modal dialog with a button on it).

Kevin Gosse
  • 38,392
  • 3
  • 78
  • 94