Click here to Skip to main content
16,004,564 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi. I need a simple horizontal TrackBar with just the line and the slider button (rectangle), the height of 28px and 100 possible values. The slider button must be as tall as the control and must have a width of 10px. How to modify the standard TrackBar to get the the simpler version?

What I have tried:

I tried various custom controls but all of them are convoluted. The standard TrackBar has too few options to modify it.
Posted
Updated 2 days ago
v2
Comments
OriginalGriff 2 days ago    
And?
What have you tried?
Where are you stuck?
What help do you need?

At the moment it just sounds like a "do my work for me" request.

Use the "Improve question" widget to edit your question and provide better information.
Member 12226991 2 days ago    
That's the thing, I don't know how to make one in the first place, that's why I'm asking. I never made custom controls. If someone provided me a clear simple example I could learn from it. I browsed various examples on CodeProject and not only they're more complex than what I need but none of them so far had a clear explanation what should be done. Just a bunch of code, lots of unexplained variables, methods, events, etc.

https://www.codeproject.com/search.aspx?q=trackbar+c%23&doctypeid=1%3b2%3b3%3b13%3b17%3b11&pgsz=50

Do you know a good beginner friendly step by step tutorial of how to make a custom TrackBar? Then I could customize it how I want it.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900