Rectangle onclick event
-
Hello, I am drawing a table in the OnPaint method of a windows form. I would like to add Rectangles to the page that will fire an onclick event when I click on them. Does anybody know how to accomplish this? As far as I can see, the rectangle object doesn't have that kind of functionality built in... I originally just tried using buttons, but since I need quite a few of them, it is taking too long to draw them. Thanks for your help! RC
-
Hello, I am drawing a table in the OnPaint method of a windows form. I would like to add Rectangles to the page that will fire an onclick event when I click on them. Does anybody know how to accomplish this? As far as I can see, the rectangle object doesn't have that kind of functionality built in... I originally just tried using buttons, but since I need quite a few of them, it is taking too long to draw them. Thanks for your help! RC