Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Add TrackBar to PropertyGrid - C#

Add TrackBar to PropertyGrid - C#

Scheduled Pinned Locked Moved C#
csharpcssquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2236778
    wrote on last edited by
    #1

    Hi, Ive been trying to add a trackbar to the property grid form element in c#. Unfortanely i only find you can draw pre defined controls with UIType Editor and Control Paint. (Checkboxes, border style and little more). Does anybody have some feeling about if this is possible? To draw a trackbar on a property grid? Thank u

    B V 2 Replies Last reply
    0
    • U User 2236778

      Hi, Ive been trying to add a trackbar to the property grid form element in c#. Unfortanely i only find you can draw pre defined controls with UIType Editor and Control Paint. (Checkboxes, border style and little more). Does anybody have some feeling about if this is possible? To draw a trackbar on a property grid? Thank u

      B Offline
      B Offline
      bscaer
      wrote on last edited by
      #2

      Look at this example: http://www.eggheadcafe.com/tutorials/aspnet/270e9432-d236-47e7-b1af-5cd3abe27a75/net-propertygrid-control.aspx[^] Copy the UIListBoxEditor class in the example, rename it to UITrackBarEditor, and replace the ListBox control with a TrackBar. Beth p.s. - A much better example is here: http://www.codeproject.com/KB/cpp/dropdownproperties.aspx[^]

      modified on Friday, May 2, 2008 5:58 PM

      1 Reply Last reply
      0
      • U User 2236778

        Hi, Ive been trying to add a trackbar to the property grid form element in c#. Unfortanely i only find you can draw pre defined controls with UIType Editor and Control Paint. (Checkboxes, border style and little more). Does anybody have some feeling about if this is possible? To draw a trackbar on a property grid? Thank u

        V Offline
        V Offline
        visualhint
        wrote on last edited by
        #3

        Hi, You are correct. The Microsoft PropertyGrid only allows a simple textbox, a textbox + button, or a textbox + dropdown button as inplace editors. Therefore you have 2 solutions: 1. Either host your trackbar in the dropdown window appearing when you click the dropdown button. You will need a UITypeEditor for that. 2. Or use a third party PropertyGrid like Smart PropertyGrid which allows many more types of inplace controls, the trackbar being one of them. Best regards, Nicolas Cadilhac @ VisualHint Smart PropertyGrid.Net Microsoft PropertyGrid Resource List Free PropertyGrid for MFC Smart FieldPackEditor.Net / DateTimePicker

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups