How to create control used by ColorEditor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bGpsZXZlbmQy?=

    #1

    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.ColorEdi tor (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 Himangi

    #2
    Re: How to create control used by ColorEditor

    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).
    EZNamespaceExte nsions.Net : Develop namespace extensions rapidly in .Net
    EZShellExtensio ns.Net : Develop all shell extensions,expl orer bars and BHOs
    rapidly in .Net
    ---------


    "ljlevend2" <ljlevend2@nosp am.nospamwrote in message
    news:B8FA112F-756B-44BB-91A4-1A3EEE4E0AC2@mi crosoft.com...
    Is there any way to create an instance of the control that is used by
    System.Drawing. Design.ColorEdi tor (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
    >

    Comment

    • ShaneO

      #3
      Re: How to create control used by ColorEditor

      ljlevend2 wrote:
      Is there any way to create an instance of the control that is used by
      System.Drawing. Design.ColorEdi tor (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.

      Comment

      • VisualHint

        #4
        Re: How to create control used by ColorEditor

        Hi,

        I think this article will make you happy: http://www.vbinfozine.com/a_colorpicker.shtml
        I use the same technique inside Smart PropertyGrid.Ne t 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...@nosp am.nospamwrote:
        Is there any way to create an instance of the control that is used by
        System.Drawing. Design.ColorEdi tor (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

        Comment

        • =?Utf-8?B?bGpsZXZlbmQy?=

          #5
          RE: How to create control used by ColorEditor

          Thanks to all who replied. You've been a big help!
          Lance

          Comment

          Working...