By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,817 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Adding font to label from a textbox using radio buttons

P: 1
Hi i am trying to add text to a label using different fonts and can only seem to get the bold or italic parts working but cant seem to get the font working with it here is what im working at..

Expand|Select|Wrap|Line Numbers
  1. Private Sub rdoArial_CheckedChanged(sender As Object, e As EventArgs) Handles rdoArial.CheckedChanged
  2.         If rdoArial.Checked = True Then
  3.             'Special font
  4.             txtSpecialMessage.Font = New Font("Arial", 11, FontStyle.Bold)
  5.         End If
  6.     End Sub
Mar 25 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.