I have select the color using common dialog.How I can clear the color in the picture box?
Code:CommonDialog1.ShowColor
Picture1.BackColor = CommonDialog1.Color
Printable View
I have select the color using common dialog.How I can clear the color in the picture box?
Code:CommonDialog1.ShowColor
Picture1.BackColor = CommonDialog1.Color
you can set it to default solor
Code:Option Explicit
Private Sub Command1_Click()
CommonDialog1.ShowColor
Picture1.BackColor = CommonDialog1.Color
End Sub
Private Sub Command2_Click()
Picture1.BackColor = &H8000000F
End Sub
Thank you so much..
During run time. When I click cancel, it color my picture box with black?I don't want the picturebox will color when I click cancel. Why? How to solve that?
Code:Private Sub Command1_Click()
CommonDialog1.ShowColor
Picture1.BackColor = CommonDialog1.Color
End Sub