You are on page 1of 4

CheckBox i Option Button

Private Sub Command1_Click()


If Check1 = 1 Then
Text1.FontBold = True
Else
Text1.FontBold = False
End If
If Check2 = 1 Then
Text1.FontItalic = True
Else
Text1.FontItalic = False
End If
If Check3 = 1 Then
Text1.FontUnderline = True
Else
Text1.FontUnderline = False
End If
End Sub
Private Sub Command2_Click()
If Option1 = True Then
Text1.FontBold = True
Else
Text1.FontBold = False
End If
If Option2 = True Then
Text1.FontItalic = True
Else
Text1.FontItalic = False
End If
If Option3 = True Then
Text1.FontUnderline = True
Else
Text1.FontUnderline = False
End If
End Sub

You might also like