|
-
Dec 1st, 2011, 11:13 PM
#1
Lively Member
Re: how do i Change font/text size of every "label,button,groupbox" ect. Globally?
I think this can do it:
Code:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If CheckBox1.Checked = True Then
Label1.Font = New Font("Consolas", 20, FontStyle.Regular)
Label2.Font = New Font("Consolas", 20, FontStyle.Regular)
Label3.Font = New Font("Consolas", 20, FontStyle.Regular)
Label4.Font = New Font("Consolas", 20, FontStyle.Regular)
Label5.Font = New Font("Consolas", 20, FontStyle.Regular)
Label6.Font = New Font("Consolas", 20, FontStyle.Regular)
Label7.Font = New Font("Consolas", 20, FontStyle.Regular)
Else
Label1.Font = New Font("Consolas", 10, FontStyle.Regular)
Label2.Font = New Font("Consolas", 10, FontStyle.Regular)
Label3.Font = New Font("Consolas", 10, FontStyle.Regular)
Label4.Font = New Font("Consolas", 10, FontStyle.Regular)
Label5.Font = New Font("Consolas", 10, FontStyle.Regular)
Label6.Font = New Font("Consolas", 10, FontStyle.Regular)
Label7.Font = New Font("Consolas", 10, FontStyle.Regular)
End If
End Sub
I know it's pretty long, but I think that it is pretty good right now, because I'm dead tired! Hope it works!
<-- If you like my post, click on the  to the left! It only takes a second... 
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|