NoviceToDotNet
NoviceToDotNet

Reputation: 10815

How to call a paint event from the mouse click event?

I am having a mouse click event and i want to call a paint event of a picture box from this mouse click event, the paint event uses the event argument of it.

Upvotes: 0

Views: 264

Answers (2)

AgentFire
AgentFire

Reputation: 9800

In case there is the method Invalidate which is specifically desing to do what you need to, and you don't want to follow that obvious way, the alternative is to

Send Message WM_PAINT to that control.

Upvotes: 1

Mario Vernari
Mario Vernari

Reputation: 7306

You can call the Invalidate method of the picture.

Upvotes: 2

Related Questions