1

In my windowsForm application I use a PropertyGrid to edit the instances of my class: some of these properties are floating point with maximum and minimum item.

I wish modify them by a slider or something like it.

I've found this: http://www.visualhint.com/propertygrid but is not free..

do you have an idea to help me?

Simon Mourier
  • 132,049
  • 21
  • 248
  • 298
ghiboz
  • 7,863
  • 21
  • 85
  • 131
  • I have edited your title. Please see, "[Should questions include “tags” in their titles?](http://meta.stackexchange.com/questions/19190/)", where the consensus is "no, they should not". – John Saunders Mar 12 '14 at 16:32

1 Answers1

3

You can make use of TrackBar. Note that PropertyGrid by default does not allow you to add controls like these to it. So, you will need to do some work here. You will need to create a class that inherits from System.Drawing.Design.UITypeEditor. Next you will have to set the editor attribute for the property that has to display track bar as control. Note that unless you do custom paint, it will be shown as modal dialog or as dropdown editor.

danish
  • 5,550
  • 2
  • 25
  • 28
  • 2
    Take a look at this article: http://www.codeproject.com/Articles/9517/PropertyGrid-and-Drop-Down-properties – danish Mar 12 '14 at 16:48