How do make a color Dialog appear below a combo box , to give the appearance of a color picker drop down.
Any Help would be much appreciated
Cheers
Alex
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vimal KandasamyPosted Feb 16, 2009, 6:20 AM
Simply create a dialog.. in that create three Text box to get value of Red , green and Blue and create a OK button.
add the following code into that Ok button
int Red=int.parse(textbox1.text);
int Green=int.parse(textbox2.text);
int blue=int.parse(textbox3.text);
Component.ForeColor = System.Drawing.Color.FromArgb(Red,Green,Blue);
Now for color of that component will be changed to your color...
you can extend it by add more features like preview,selection,etc.