PointToScreen Function works with Two Monitor Solution

A

Armin

Hello

I want get the Screen Coordinates of a Control.

I do this with Control.PointToScreen.

vlob_Point = Me.PointToScreen(New System.Drawing.Point(0, 0))


This works fine with a Single Monitor but
if I have a two Monitor solution then I get the wrong Coordinates.....


I try to take the Coordinates of the Form plus the Coordinates of the
Control
but that's not Working because of the Form Caption/Head Size which is not
calculated....

Any Idea
 
O

One Handed Man

Do you mean this is working ok on monitor 1 but not on 2 ? or are you saying
neither 1 nor 2 work in the two monitor configuration ?

I wonder if this is something to do with mixed resolutions ?, it may be that
the system doesent cope with that ?

???

OHM
 
F

Ford Prefect alias Armin

Sorry the Head of the Mail was written wrong

It has to be : "PointToScreen Function works NOT with Two Monitor Solution"

It's working ok if 1 having only one Monitor.

I have test it on over 20 Machines that have only one Monitor.......
No Problem, it works.

But now I have a Customer who has two Monitors.

If he moves a Form to the Second (right Side) Monitor
the function returns me a coordinate which is located on the left one.

Thanx for any Idea.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top