ViolentDemise
New member
- Joined
- Jun 1, 2010
- Messages
- 2
- Programming Experience
- 1-3
Hi all, I'm currently in the process of making a dynamic signature generator, and I want to make the user be able to see what he would get... So I thought of putting a browse button and allowing them to load up a background image for their signature, but I also want the picturebox to resize according to that image's size. I need them to be the same size because of the image's X, Y are needed for the signature.
So I'm using this code for that:
It works fine, but it only gets the coordinates for the picturebox, not the actuall image, so I think if the picturebox is the same size as the picturebox it would get them just fine... Any help ?
So I'm using this code for that:
VB.NET:
LocalMousePosition = PictureBox1.PointToClient(Cursor.Position)
xy.Text = ("X=" & LocalMousePosition.X & "," & "Y= " & LocalMousePosition.Y)
It works fine, but it only gets the coordinates for the picturebox, not the actuall image, so I think if the picturebox is the same size as the picturebox it would get them just fine... Any help ?