7)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.
Option Explicit
Private Sub Check1_Click()
If Check1.Value = 1 Then
Form1.BackColor = vbRed
Check1.Caption = "blue"
Else
Form1.BackColor = vbGreen
Check1.Caption = "Red"
End If
End Sub