Quick ColorDialog ?

UCM

Well-known member
Joined
Jan 1, 2003
Messages
135
Location
Colorado, usa
Ive been trying to change the color ( in code ) of a colordialog box but with no success...

Ive been using:
Code:
      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:
Code:
 Me.ColorDialog1.Color = Color.Red
or
 Me.ColorDialog1.Color = Color.FromName("Red")
Cheers
 
Back
Top