this might be a very global question but here we go:
I was wondering how I could make a trackbar like Virtualbox.
They have a trackbar that have custom colors at the bottom to show if you’ve assigned too much RAM to your virtual system.
Now my question is: How can I give my trackbar custom colors?
I have read something about e.graphics etc. and overriding other functions, but I can’t seem to find any information about this ):.
If you know what I mean and have sources to good tutorials and/or examples that would be awesome! Because I really don’t know where to look anymore :(.
I am programming in C#, WinForms.
As Hans mentioned the standard trackbar is pretty limiting. You can change the background color through
TrackBar.BackColorproperty. Otherwise you will have to create a custom control and override the OnPaint method:Third option is to use a trackbar already created. Like free CodeProject trackbar or commercial Devexpress one.