简体   繁体   中英

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

Apparently, the PictureBox class does not offer an event when its Image property is set. Is 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM