How make string bold

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)
 
H

Herfried K. Wagner [MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top