[英]How can I add a ColorChanged event to ColorDialog?
I want to process an event at point when the user chooses a color. 我想在用户选择颜色时处理事件。 Is it possible to add ColorChanged event to the ColorDialog?
是否可以将ColorChanged事件添加到ColorDialog?
If you mean before you've pressed OK
, then the answer is most likely no. 如果您的意思是在按下
OK
之前,那么答案很可能不是。
The ColorDialog
is just a wrapper for a native Win32 dialog, and it's very hard (maybe even impossible) to modify them from .NET. ColorDialog
只是本机Win32对话框的包装,而从.NET修改它们非常困难(甚至不可能)。
I'd say your best option is to create a form mimicking the dialog's layout, and implement the event there. 我想说,最好的选择是创建一个模仿对话框布局的表单,然后在其中实现事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.