VB流行颜色选择器
我有一个关于 VB 事件处理程序和颜色选择器的问题。
现在我有一个标签,我希望当用户单击它时,它会弹出一个颜色选择器对话框并让用户更改标签的背景颜色。
不知道如何实施,有人可以给我指导吗?
谢谢
I have a question of VB event handler and color picker.
Now I have a label, and I want when user click it, it pops up a color picker dialog and let user to change the background color of the label.
Not sure how to implement this, can anyone give me a direction?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在
Label
的单击处理程序中使用 .NET Framework 的ColorDialog
类。Use the .NET Framework's
ColorDialog
class in yourLabel
's click handler.这是执行此操作的方法:
here is the way to do it: