vb example color picker from form
COLOR PICK FROM FORM
CODE VIEW -
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
PopupMenu mnuColors
End If
End Sub
Private Sub mnuBlue_Click()
Form1.BackColor = vbBlue
End Sub
Private Sub mnuGreen_Click()
Form1.BackColor = vbGreen
End Sub
Private Sub mnuRed_Click()
Form1.BackColor = vbRed
End Sub
Private Sub mnuWhite_Click()
Form1.BackColor = vbWhite
End Sub
Private Sub mnuYellow_Click()
Form1.BackColor = vbYellow
End Sub
Comments
Post a Comment