You are on page 1of 3

CODING

Private Sub Check1_Click()


If Check1.Value = 1 Then
Text1.FontBold = True
Else
Text1.FontBold = False
End If

End Sub

Private Sub Check2_Click()


If Check2.Value = 1 Then
Text1.FontItalic = True
Else
Text1.FontItalic = False
End If
End Sub

Private Sub Check3_Click()


If Check3.Value = 1 Then
Text1.FontUnderline = True
Else
Text1.FontUnderline = False
End If
End Sub

Private Sub Option1_Click()


If Option1.Value = True Then
Text1.ForeColor = vbRed
Text1.BackColor = vbYellow

Else
Option1.Value = False
End If

End Sub

Private Sub Option2_Click()


If Option2.Value = True Then
Text1.ForeColor = vbBlue
Text1.BackColor = vbBlack
Text1.BackColor = vbRed

Else
Option2.Value = False
End If

End Sub

Private Sub Option3_Click()


If Option3.Value = True Then
Text1.ForeColor = vbGreen
Else
Option3.Value = False
End If

End Sub
Dim a As String
Dim e As String
Dim d As String
Dim b As Integer

Private Sub Command1_Click()


a = InputBox("enter any name")
List1.AddItem a
End Sub

Private Sub Command2_Click()


b = List1.ListIndex

List1.RemoveItem b

End Sub

Private Sub Command3_Click()


e = InputBox("enter any thing")
Combo1.AddItem e
End Sub

Private Sub delete_Click()


d = Combo1.ListIndex
Combo1.RemoveItem d
End Sub

You might also like