Developer Network
Developer Network
Developer
:CreateViewProfileText:
Sign in
Subscriber portal
Get tools
Downloads
Visual Studio
SDKs
Trial software
Free downloads
Office resources
Programs
Subscriptions
Overview
Administrators
Students
Microsoft Imagine
Microsoft Student Partners
ISV
Startups
Events
Community
Magazine
Forums
Blogs
Channel 9
Documentation
APIs and reference
Dev centers
Samples
Retired content
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
Ask a question
Quick access
Forums home
Browse forums users
FAQ
Search related threads
Remove From My Forums
Answered by:
Finding the absolute location of a control
Archived Forums V
>
Visual Basic Language
Question
0
Sign in to vote
Hi
How would I find the absolute location of a control, say a text box? What I mean is, the X and Y relative to the top left of the screen, rather than the window of my application?
Thanks in advance.
Thursday, March 13, 2008 11:13 PM
Answers
0
Sign in to vote
Solved!
Here's the solution
AbsolutePoint = PointToScreen(control.Location)
Friday, March 14, 2008 12:12 AM