INTERACT FORUM

Windows => Plug-in Development => Topic started by: KingSparta on October 03, 2004, 06:27:26 am

Title: CommonDialog1.ShowColor and MC11 Skins
Post by: KingSparta on October 03, 2004, 06:27:26 am
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

Quote
   ' 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