Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Event for clicking on a rectangle

$
0
0

Hi!

I'm working on a card game project. I wrote a class called MyCard that represents a card. I want to write an event for it, so every time I click on a card, it flips. I have the function that flips it. I want to know how to check for mouse click on the object(is drawn on an picture box using a rectangle and an image) and where to write it. Also, how do I write what to do when it is clicked?

Thank you!


Viewing all articles
Browse latest Browse all 12583

Latest Images

Trending Articles



Latest Images