mafu
mafu

Reputation: 32640

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?

Upvotes: 2

Views: 294

Answers (1)

George Duckett
George Duckett

Reputation: 32428

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.

Upvotes: 6

Related Questions