Quick ColorDialog ?

UCM

Centurion
Joined
Jan 1, 2003
Messages
135
Location
Colorado, usa
I've been trying to change the color ( in code ) of a colordialog box but with no success...

I've been using:
Visual Basic:
      Me.ColorDialog1.Color.FromName("Red")    'Color.FromName(ComboBox3.SelectedText)


[edit]
 
[/edit]


Every time I try to change it this way, even if I specify"Red", it will select Black (0,0,0)
 
You have to set the color (your code returns the red color, but you dont set it to anything)
try:
Visual Basic:
 Me.ColorDialog1.Color = Color.Red
'or
 Me.ColorDialog1.Color = Color.FromName("Red")
Cheers
 
Back
Top