|
-
Mar 21st, 2010, 12:32 AM
#1
Thread Starter
Addicted Member
Click event "through" a control
Good evening yall,
I have a simple question about a complex problem. Let me describe my scenario here. I have a picturebox control that graphically represents an eight by eight grid. Each tile/box on the grid is 60 x 60. So I am able to generate tile/box location on a mouse click event based off of X and Y because the entire grid is 480 x 480.
However, I create labels during runtime that populate .bringtofront on the grid. If the user clicks on the label that exists on top of the grid I end up storing the X and Y from the generated label, not the grid, which throws my two deminsional location array off. So my simple question is...
Is there a way to generate a control on top of a control but make it uninteractable? I want to grab the mouse cordinates from my picbox grid, not the labels.
Any suggestions? I can post code if need be but I didn't see any reason to, I need information on how, not instruction on what is wrong.
I've searched the codebank and previous posts and didn't find anything remotely close to what I am looking for.
Thanks guys.
Abrium
Asking the beginners questions so you don't have to!
If by chance hell actually froze over and I some how helped you... Please rate.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|