How to create control used by ColorEditor

G

Guest

Is there any way to create an instance of the control that is used by
System.Drawing.Design.ColorEditor (i.e., the control that appears when you
click on a color in a PropertyGrid)? I want to allow the user to select a
color from within my app (but not from a PropertyGrid). The control that is
used by the ColorEditor is perfect but I can't find it anywhere.

Thanks for any help!
Lance
 
G

G Himangi

The color pallette control used by ColorEditor is not public and therefore
cannot be used separately. As an alternative, you can consider using the
ColorDialog common dialog.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 
S

ShaneO

ljlevend2 said:
Is there any way to create an instance of the control that is used by
System.Drawing.Design.ColorEditor (i.e., the control that appears when you
click on a color in a PropertyGrid)? I want to allow the user to select a
color from within my app (but not from a PropertyGrid). The control that is
used by the ColorEditor is perfect but I can't find it anywhere.

Thanks for any help!
Lance

There's an excellent range of ColorPickers here -

http://msdn.microsoft.com/msdnmag/issues/03/07/GDIColorPicker/default.aspx

If you need any extra assistance, post back with your questions.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
 
V

VisualHint

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top