|
-
Feb 27th, 2010, 11:31 PM
#1
Thread Starter
Member
Click Part of Image
Hey,
does anyone know How can I for example make if user clicks one one half of the picture box it will msgbox left side and vice versa?
thankyou
reguards
Sumn3rd
-
Feb 27th, 2010, 11:40 PM
#2
Re: Click Part of Image
You'll have to handle the MouseClick event and get the position of the mouse pointer, then use some code to calculate where that is in relation to your target areas. The easiest way would be to define Rectangles to represent those areas and then call their Contains methods to see if they contain the mouse pointer.
-
Feb 28th, 2010, 03:20 AM
#3
Lively Member
Re: Click Part of Image
Divide the picture into two and insert two pic box and then insert one half image on one pic box and another half on another box and in _click property msgBox("left") and like this for the right
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
|