471,851 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,851 software developers and data experts.

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 913

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
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.