473,507 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Screen Coordinates of a Control

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
3 5733
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
* 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1734
by: Dan | last post by:
Hi. I want to be able to use the ListView::GetItemAt function from within the ListView's DragDrop event callback. My problem is that GetItemAt requires screen-space coordinates, and the...
2
4558
by: Dan Sikorsky | last post by:
How do you get the x,y pixel location of a textbox so that you can position the Web Date Control popup nearby the associated textbox that will contain the date selected by the Web Date Control? ...
1
1675
by: zoneal | last post by:
OS: Win XP Language: VB.net or C# I have a program where I need to launch 2 separate instances of an App called "Main.exe". Each instance will need to be piped to there own video display. ...
1
1798
by: Udi | last post by:
Hi, I have a listbox and a textbox that are built and shown dynamically. My problem is that their positions and sizes may cause them to be displayed out of the their parent form bounds, and in a...
3
5360
by: steve | last post by:
Hi All I have textboxes within a TableLayoutpanel and I want to be able to position an independant control adjacent to a selected textbox This independent control allows selection of text to...
1
27005
by: Simon Verona | last post by:
I have a usercontrol which when entered pops up a form. I want the form to be aligned with the bottom edge of the user control. I was doing this by passing the usercontrol into the form as a...
1
5801
by: Sagaert Johan | last post by:
Hi Are there any classes that allow conversion of mouse coordiinates (relative to the container coords) to screen coordinates ?
3
1465
by: Peter Oliphant | last post by:
I'm programming using MS VS VC++ 2008 Express (Beta 2) in /Cli pure mode. I've found the Screen class. With it I can very easily get the count and all the data on the various Screens attached to...
0
8908
by: raylopez99 | last post by:
keywords: logical coordinates, page coordinates, world coordinates, device coordinates, physical coordinates, screen coordinates, client coordinates. offset rectangle. WYSIWYG rubber rectangle...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.