Trackbar Values

Quick question; In C #, Windows Forms, is it possible to have System.Windows.Forms.TrackBar show all its values โ€‹โ€‹next to its ticks? I could not find a way to do this, which surprises me. Is there any other way to get this behavior? I really would like to avoid creating 25 tags and writing to them.

+4
source share
1 answer

You can achieve this by creating a custom control in it using the TrackBar and creating labels at runtime (the labels are placed according to tick values).

I did something similar a while ago with a ProgressBar instead of a TrackBar, but the logic should still apply. I donโ€™t have the code right now, I'm afraid Iโ€™ll try to dig it out.

+5
source

Source: https://habr.com/ru/post/1384892/


All Articles