Several trackball slider for windows

Does anyone know how to create a track bar with multiple sliders in WinForms? I would like to note the range. In addition, is it possible to slightly move the sliders vertically? My goal would be to have two sliders above the slider, and two below.

v-----------------v ________________________________________ ^------^ 
+7
c # winforms
source share
2 answers

You can do this by writing your own UserControl , where you handle mouse events and draw yourself. You will need several areas of test testing; one for each thumb.

To draw a track bar, you will need a combination of ControlPaint and the APIs provided by System.Windows.Forms.VisualStyles . In particular, VisualStyleElement.TrackBar.ThumbTop , VisualStyleElement.TrackBar.ThumbBottom , and VisualStyleElement.TrackBar.Track for thumb and track, respectively.

You use ControlPaint calls to draw a frame and buttons for the track and thumbs when they are unavailable (for example, on Win2k or when you turn them off).

+7
source share

You can make your own with ControlPaint to make sure the rendering is compatible with the rest of your user interface.

0
source share

All Articles