troubleshooting Question

Click Events from a User Control

Avatar of Jimmy Lea
Jimmy LeaFlag for United States of America asked on
Visual Basic.NET
3 Comments1 Solution340 ViewsLast Modified:
I'm working on an app that displays thumbs in a vertical panel.
I'm using VB 2005.

I have created a User Control to group a Picturebox and a label together.
 

The problem I'm getting into is that when I create the Click event for the control, it only works when you click off of the picturebox. Like right beside the picturebox.
How do I get the click event to cover the entire control?  So when a user clicks the image or the label it will fire the click event.

This is my first UserControl, so it's probalby something simple.

Thanks

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros