Customizing the TrackBar control in .NET

2019-01-25 01:19发布

问题:

I am trying to develop application that would let me mark A-B points on the timeline. How do I draw lines on the trackbar to mark a specific point/value?

Also, how do I hide the ticks in the trackbar control when TickStyle is set to Both?

回答1:

I think these links help you to customize your trackbar control. Second link gives you a lot of examples for customize trackbar.

http://www.codeproject.com/KB/miscctrl/MAC_Slider.aspx

http://www.codeproject.com/KB/miscctrl/gTrackBar.aspx



回答2:

If you are ready to pay for that DevExpress provides a Trackar which is named RangeTrackBar with 2 TrackBar Buttons and very Customizable using Visual Studio Designer .