VB.NET Syntax (Toggle Plain Text)
1.
Private Sub Button1_Click(ByVal sender As System.Object, _
2.
ByVal e As System.EventArgs) Handles Button1.Click
3.
Dim W As Integer = TextBox1.Text
4.
Dim H As Integer = TextBox2.Text
5.
Label1.Size = New Point(W, H)
6.
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim W As Integer = TextBox1.Text Dim H As Integer = TextBox2.Text Label1.Size = New Point(W, H) End Sub
I use it and it work Turn off Autosize And to test it work just change BackColor
to other color
the font size didn't change as it label size you must code it
VB.NET Syntax (Toggle Plain Text)
1.
Dim fnt As Font
2.
fnt = TextBox1.Font
3.
Label1.Font = New Font(fnt.Name, 12, FontStyle.Bold)