getting red, green and blue values using commondialog.showcolor
Posted on 2002-04-06
I am relatively new to VB and I have 1 question related to VB 6.0
I want to know how can I get Red, Green and Blue Values using CommonDialog Control's ShowColor. I don't want to get multiplied RGB value as returned by CommonDialog.Color but each value separately as RED, GREEN, and BLUE and also HSB values separately.
If it is not possible then is it possible that I can determine how that rgb value was calculated(using which three values).
If even this isn't possible than is there any way to draw these rainbow like color strips on a form and then use mouse tracking to get rgb values? As is done in Color Dialogs Custom Option. I think this option is most difficult.