How make string bold

  • Thread starter Thread starter Woody Splawn
  • Start date Start date
W

Woody Splawn

I would like to display a certain string in a message box in upper case and
bold. I know how to display it in upper case. My code for doing so is
listed below. However, I do not know how to have it displayed in bold. Is
it possible to have it displayed in bold too?

Dim str As String

str = "builder"

str = str.ToUpper

MsgBox(str)
 
Woody Splawn said:
I would like to display a certain string in a message box in upper case and
bold. I know how to display it in upper case. My code for doing so is
listed below. However, I do not know how to have it displayed in bold.
Is
it possible to have it displayed in bold too?

That's not supported by messageboxes. You will have to write your own
messagebox form and draw the text using 'DrawString'.

Implementing a message box with standard behavior
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=custommsgbox&lang=en>
 
Back
Top