PointToScreen Function works with Two Monitor Solution

  • Thread starter Thread starter Armin
  • Start date Start date
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
 
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
 
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.....
 
Back
Top