You are on page 1of 5

Private Sub CheckBox1_Click()

If CheckBox1.Value = True Then


Label5.Font.Bold = True
Else
Label5.Font.Bold = False
End If
End Sub

Private Sub CheckBox2_Click()


If CheckBox2.Value = True Then
Label5.Font.Italic = True
Else
Label5.Font.Italic = False
End If
End Sub

Private Sub CheckBox3_Click()


If CheckBox3.Value = True Then
Label5.Font.Underline = True
Else
Label5.Font.Underline = False
End If

End Sub

Private Sub CheckBox4_Click()


If CheckBox4.Value = True Then
Label5.Font.Strikethrough = True
Else
Label5.Font.Strikethrough = False
End If

End Sub

Private Sub ComboBox1_Change()

End Sub

Private Sub ComboBox1_Click()


If ComboBox1.Text = "algerian" Then
Label5.Font.Name = "algerian"
End If
If ComboBox1.Text = "tahoma" Then
Label5.Font.Name = "tahoma"
End If
If ComboBox1.Text = "arial black" Then
Label5.Font.Name = "arial black"
End If

End Sub

Private Sub ComboBox2_Change()

End Sub

Private Sub ComboBox2_Click()


If ComboBox2.Text = "12" Then
Label5.Font.Size = 12
End If
If ComboBox2.Text = "28" Then
Label5.Font.Size = 28
End If
If ComboBox2.Text = "48" Then
Label5.Font.Size = 48
End If

End Sub

Private Sub ComboBox3_Change()

End Sub

Private Sub ComboBox3_Click()


If ComboBox3.Text = "amarillo" Then
Label5.ForeColor = QBColor(14)
End If
If ComboBox3.Text = "verde" Then
Label5.ForeColor = QBColor(2)
End If
If ComboBox3.Text = "fucsia" Then
Label5.ForeColor = QBColor(13)
End If

End Sub

Private Sub ComboBox4_Change()

End Sub

Private Sub ComboBox4_Click()


If ComboBox4.Text = "rojo" Then
Label5.BackColor = QBColor(12)
End If
If ComboBox4.Text = "gris" Then
Label5.BackColor = QBColor(8)
End If
If ComboBox4.Text = "azul" Then
Label5.BackColor = QBColor(11)

End If
End Sub

Private Sub CommandButton1_Click()


Dim salir As Byte
salir = MsgBox("Desea salir de esta fabulosa aplicacion?", 32 + 4, "SALIR DE FUENTE")
If salir = 6 Then
End
End If

End Sub

Private Sub CommandButton2_Click()


ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
CheckBox1.Value = False
CheckBox2.Value = False
CheckBox3.Value = False
CheckBox4.Value = False
Label5.BackColor = QBColor(7)
Label5.ForeColor = QBColor(0)

End Sub

Private Sub UserForm_Activate()


ComboBox1.AddItem "algerian"
ComboBox1.AddItem "tahoma"
ComboBox1.AddItem "arial black"
ComboBox2.AddItem "12"
ComboBox2.AddItem "28"
ComboBox2.AddItem "48"

ComboBox3.AddItem "amarillo"
ComboBox3.AddItem "verde"
ComboBox3.AddItem "fucsia"
ComboBox4.AddItem "rojo"
ComboBox4.AddItem "gris"
ComboBox4.AddItem "azul"

End Sub

Private Sub UserForm_Click()

End Sub

You might also like