WinForms 音量滑块/轨迹栏用户控件
我正在寻找一个类似轨迹栏的用户/自定义控件以在我的 .NET 2.0 WinForms 应用程序中使用。
注意:我不是问如何控制 WinForms 应用程序中的音量。
有人知道一个漂亮的自定义绘制的滑块/轨迹栏控件可以在我的应用程序中使用来让用户设置音量吗? (例如多媒体应用程序中使用的)
理想情况下,它应该支持垂直方向。
TIA,
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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
CodeGuru 有一个关于如何创建自己的自定义跟踪栏的优秀 C# 教程:
http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c12101
结果看起来非常令人印象深刻,因为您正在创建自己的控件,所以您不必担心授权第三方控件。 只需确保也遵循示例代码的许可即可。 :)
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. :)
有一个 TrackBar 控件,只是有点难找到它,因为它在工具栏上没有类别。 打开“所有 Windows 窗体”。 根据MSDN,它自 以来一直存在。网络1.0
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