WinForms Volume Slider/Trackbar User Control

谁说我不能喝 提交于 2019-12-01 03:10:38

问题


I'm looking for a trackbar-like user/custom control to use in my .NET 2.0 WinForms app.

Note: I'm NOT asking how to control the volume in a WinForms app.

Anyone knows of a nice looking custom painted slider/trackbar control that could be used in my app to let user set the volume? (such as the ones used in multimedia apps)

Ideally, it should support vertical orientation.

TIA,


回答1:


There is an excellent C# tutorial on how to create your own custom trackbar over at CodeGuru:

http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c12101

The result looks very impressive, and because you are creating your own control you wouldn't have to worry about licensing a 3rd party control. Just make sure to follow the licensing for the sample code as well. :)




回答2:


There's a TrackBar control, it's just a little hard to find it because it has no category on toolbar. Open "All Windows Forms". According to MSDN it has been there since .NET 1.0



来源:https://stackoverflow.com/questions/625728/winforms-volume-slider-trackbar-user-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!