[Mono-winforms-list] Finding x and y position in a picture box

Jonathan Pobst monkey at jpobst.com
Wed Apr 29 12:56:05 EDT 2009


Assuming you are using 2.0, an event was added exactly to give you this 
info:

Control.MouseClick

Handle that and the eventargs gives you what you want.  :)

Jonathan

Paul wrote:
> Hi,
> 
> I'm trying to set up some regions within a picturebox so that when I
> click on it, I get a nice message. I've looked around quite a bit for
> this sort of thing, but can't seem to find anything.
> 
> As it stands, I have a PictureBox1Click event being thrown, but I'm
> unsure of which method to use from the pictureBox1 object to use to find
> the x and y position.
> 
> Any help here would be appreciated - it's for an upcoming anniversary.
> 
> TTFN
> 
> Paul
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list



More information about the Mono-winforms-list mailing list