Z ZorpiedoMan Jul 22, 2004 #1 Help... I need the screen coordinates of a control so I can place a pop up form underneath it. --Zorpy
Help... I need the screen coordinates of a control so I can place a pop up form underneath it. --Zorpy
K Ken Tucker [MVP] Jul 22, 2004 #2 Hi, All controls have the pointtoscreen method Dim pt As Point pt = ListBox1.PointToScreen(New Point(0, 0)) Ken -------------------------- Help... I need the screen coordinates of a control so I can place a pop up form underneath it. --Zorpy
Hi, All controls have the pointtoscreen method Dim pt As Point pt = ListBox1.PointToScreen(New Point(0, 0)) Ken -------------------------- Help... I need the screen coordinates of a control so I can place a pop up form underneath it. --Zorpy
H Herfried K. Wagner [MVP] Jul 22, 2004 #3 * ZorpiedoMan said: Help... I need the screen coordinates of a control so I can place a pop up form underneath it. Click to expand... \\\ MsgBox(Me.PointToScreen(Me.Button1.Location).ToString()) ///
* ZorpiedoMan said: Help... I need the screen coordinates of a control so I can place a pop up form underneath it. Click to expand... \\\ MsgBox(Me.PointToScreen(Me.Button1.Location).ToString()) ///
J Jay B. Harlow [MVP - Outlook] Jul 22, 2004 #4 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
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