1
Answer

Handling 'clicks' on a User-created Control

M W

M W

17y
1.5k
1
I created a User Control in C# (for VS 2005) thats basically a Panel, with a PictureBox right on top of it. Basically, I want a thick border to be drawn around the Picture when it is clicked, and having the Panel a little bit bigger than the PictureBox looks fine. It looks fine, except when I go to drag-and-drop my UserControl into a Form, I dont see anyway to handle Clicking on the UserControl from the Form. When I click on the UserControl to bring up the CodeView, all i see is the following filled in for me: ------------------------- private void ctlEictImageBox1_Load(object sender, EventArgs e) { } -------------------------- I would think "_Click" would show up rather than "_Load" , but it doesnt. What else do I need to provide, and does it go in the code for the USerControl, or the Form?? Thanks, Matt
Answers (1)