The Skins (I think) Screw This Control Up (CommonDialog1.ShowColor) In Visual Basic.
Basicly You can't see any of the colors because the control looks blank, if you click on a part of the control, you can see a color in that spot only.
is there a work around or somthing i can do to use this control?
I currently have the new VB SP6 installed
' The following line says: if the user will press the cancel Button, '
' treat it like if an error occurred in the program. '
CommonDialog1.CancelError = True
' If an error occurred in the program, jump to the '
' CancelPressed part of the program, below. '
On Error GoTo CancelPressed
' Set the Flags property '
CommonDialog1.Flags = cdlCCRGBInit
' Pop up the Color Selector '
CommonDialog1.ShowColor
' Paint the from with the chosen color. '
' CommonDialog1.Color holds the color that the user has selected. '
UserControl.BackColor = CommonDialog1.Color
' exit the Command1_Click() sub '
Exit Sub
CancelPressed:
EndSub