469,578 Members | 1,775 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

Child Control Location

I need to get the location of a picturebox inside a picturebox. I think I
need to use pointtoclient to get the right point, but I keep getting
negative numbers.

Dim pnt As New Point(e.X, e.Y)
pnt = picCont.PointToScreen(pnt)

picDraw.Location = picCont.PointToClient(pnt)

TIA
Nov 20 '05 #1
0 887

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Nathan Burleson | last post: by
reply views Thread by Bruin | last post: by
5 posts views Thread by vul | last post: by
6 posts views Thread by =?Utf-8?B?QVRU?= | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.