Output of the Dynamic text styling
Private Sub Command1_Click()
vbcolor.ShowColor
End Sub
Private Sub Command2_Click()
Dim font As String
Dim size As Integer
font = Combo1.Text
size = List1.Text
Text1.font = font
size = Val(List1.Text)
Text1.FontSize = size
Text1.ForeColor = vbcolor.Color
If Check1.Value = 1 Then
Text1.FontUnderline = True
End If
If Check2.Value = 1 Then
Text1.FontBold = True
End If
If Check3.Value = 1 Then
Text1.FontItalic = True
End If
End Sub
0 Comments