Drawing controls question

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

This should be an easy question, but I have not found the answer. I am now
learning how to create my own controls and draw them to a form. But my
specific question is when I have a label that I want to BOLD, how do I set
the label text to be bold?

Thanks for the information.
 
Brad said:
learning how to create my own controls and draw them to a form. But my
specific question is when I have a label that I want to BOLD, how do I set
the label text to be bold?

\\\

' Adding bold style.
Me.Label1.Font = _
New Font(Me.Button1.Font, Me.Label1.Font.Style And Not FontStyle.Bold)

' Removing bold style.
Me.Label1.Font = _
New Font(Me.Button1.Font, Me.Label1.Font.Style Or FontStyle.Bold)
///
 

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

Back
Top