By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Screen Coordinates of a Control

P: n/a
Help... I need the screen coordinates of a control so I can place a pop
up form underneath it.

--Zorpy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

All controls have the pointtoscreen method

Dim pt As Point

pt = ListBox1.PointToScreen(New Point(0, 0))

Ken

--------------------------

"ZorpiedoMan" <No********@Beatles.com> wrote in message
news:O%***************@TK2MSFTNGP11.phx.gbl...
Help... I need the screen coordinates of a control so I can place a pop
up form underneath it.

--Zorpy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #2

P: n/a
* ZorpiedoMan <No********@Beatles.com> scripsit:
Help... I need the screen coordinates of a control so I can place a pop
up form underneath it.


\\\
MsgBox(Me.PointToScreen(Me.Button1.Location).ToStr ing())
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

P: n/a
Zorpy,
In addition to Ken & Herfried comments.

Control also has a PointToClient to convert from screen to client
coordinates.

As well as RectangleToClient & RectangleToScreen to convert rectangles
instead of points.

Hope this helps
Jay

"ZorpiedoMan" <No********@Beatles.com> wrote in message
news:O%***************@TK2MSFTNGP11.phx.gbl...
Help... I need the screen coordinates of a control so I can place a pop
up form underneath it.

--Zorpy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.