开发者

How do I tell if a PictureBox's Image has changed?

开发者 https://www.devze.com 2023-03-22 04:56 出处:网络
Apparently, the PictureBox class does not offer an event when its Image property is set. 开发者_如何学PythonIs there a way to still catch such a change, possibly by subclassing?You could subclass it a

Apparently, the PictureBox class does not offer an event when its Image property is set. 开发者_如何学PythonIs there a way to still catch such a change, possibly by subclassing?


You could subclass it and hide the base class' Image property, providing your own which raised an event in the property setter (set) if the value is different.

0

精彩评论

暂无评论...
验证码 换一张
取 消