G
Guest
Hi,
I am trying to move controls around in a form based on user selection on a
combo-box. So i hard coded the location and distances of where and how much
to move controls by in my program. Everything works fine on my machine. But
when i run my program on another machine which has a diferent DPI setting on
the monitor(mine was 120 and the other machine was 96) the control position
and the distances were bad. I am assuming that it because when i move a
control down by a given distance (100) to a certain location, the distance
evaluates to be a different location on the other computer with different DPI
setting. I know some people used to have similar problems in VB6 but i
thought microsoft fixed it in .NET. How do i make my form appear uniform on
both computers with different DPI settings? I would appreciate any help or
suggestions in this regard.
Thank You,
Vish
I am trying to move controls around in a form based on user selection on a
combo-box. So i hard coded the location and distances of where and how much
to move controls by in my program. Everything works fine on my machine. But
when i run my program on another machine which has a diferent DPI setting on
the monitor(mine was 120 and the other machine was 96) the control position
and the distances were bad. I am assuming that it because when i move a
control down by a given distance (100) to a certain location, the distance
evaluates to be a different location on the other computer with different DPI
setting. I know some people used to have similar problems in VB6 but i
thought microsoft fixed it in .NET. How do i make my form appear uniform on
both computers with different DPI settings? I would appreciate any help or
suggestions in this regard.
Thank You,
Vish