=================================Slip
7_1================================= Design an application that
contains one Label and two combo boxes, one combo box contains any text and
second combo box contains color names. Write a VB Program to set caption and
background color to the label control from respective combo
boxes
========================================================================
Private Sub Combo1_Click()
Label1.Caption =
Combo1.Text
End Sub
Private Sub Combo2_Click()
If Combo2.Text =
"Red" Then
Label1.BackColor
= vbRed
ElseIf Combo2.Text
= "Green" Then
Label1.BackColor
= vbGreen
Else
Label1.BackColor
= vbBlue
End If
End Sub
No comments:
Post a Comment
Note: only a member of this blog may post a comment.