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
Printable View
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
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.
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