473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to create control used by ColorEditor

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

May 25 '07 #1
4 2441
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
---------
"ljlevend2" <lj*******@nospam.nospamwrote in message
news:B8**********************************@microsof t.com...
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

May 25 '07 #2
ljlevend2 wrote:
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/is...r/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.
May 25 '07 #3
Hi,

I think this article will make you happy: http://www.vbinfozine.com/a_colorpicker.shtml
I use the same technique inside Smart PropertyGrid.Net to display the
ColorUI which is internal to ColorEditor.

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com

On May 24, 11:48 pm, ljlevend2 <ljleve...@nospam.nospamwrote:
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 aPropertyGrid)? I want to allow the user to select a
color from within my app (but not from aPropertyGrid). The control that is
used by the ColorEditor is perfect but I can't find it anywhere.

Thanks for any help!
Lance

May 25 '07 #4
Thanks to all who replied. You've been a big help!
Lance

May 25 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Grey | last post by:
is it possible to dynamic create control in runtime. I want to create a new textbox on every click on the button.
0
by: Oliver Drobnik | last post by:
Ok, I did it. By adding a few registry keys (COM Registration) I am able to use a VB.NET User Control in a Powerpoint 2000 presentation. Now I would like to know how to achieve these things: ...
2
by: rob | last post by:
I'm trying to create a UI which allows to move objects. I would like to give reall drag and drop feature.. I do not want to give fake drag and drop. When the user selects it should create a...
5
by: Michael Fitzpatrick | last post by:
I have an access 2000 database form and need an image control that will display a PNG file. The PC's all run Windows 2000. The image control in access 2000 does not support PNG so I tried to create...
0
by: Eric | last post by:
Hi I want to know if it's possible to create a control at runtime in a different process than the main form There is a fonction I try but I have a message that tell me I can create control on...
2
by: Tom | last post by:
Dear All : How to create control array class in vb.net and how to use loop method so that add all button of cuurent form into collection class Thanks
0
by: swong4 | last post by:
Hi all, I am trying to use an ActiveX control on the server-side of an ASP.NET 2.0 application written in C#. The ActiveX control is a 3rd-party interface to a data feed used by my application...
6
seshu
by: seshu | last post by:
Hi Everybody Earlier i used to write vb6 code there when ever i copy a textbox and past on same form it used to ask me should i create textbox arrays if i say yes the name used to be like this...
2
by: gyanendar | last post by:
Hi I want to create control(txtbox,label..etc) in asp page in run time.Here I have a table in database where control name &type is give.I want to fetch control information from database and than...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.