Tom,
In addition to the other comments.
It sounds like you have your desktop running at 96 DPI & your desktop
running at 120 DPI (or visa versa). Correct?
I have one project where I overrode Control.ScaleCore to scale my Point &
Size values, however my Point & Size values were fields of my type.
You may be able to use Form.AutoScaleBaseSize to scale your inline Point &
Size values.
Using Control.ScaleCore I have not seen a real difference when running at
either 96 DPI or 120 DPI, although I've seen many statements that auto
scaling doesn't work, at least doesn't work as well as it should. I know
..NET 2.0 has improved support for AutoScale.
http://msdn2.microsoft.com/library/e...us,vs.80).aspx http://msdn2.microsoft.com/library/h...us,vs.80).aspx http://msdn2.microsoft.com/library/f...us,vs.80).aspx
The one thing I like about the new properties is that they are at the
container control level & not the Form level, allowing control libraries to
scale better.
I have not done a lot with the above properties yet.
Hope this helps
Jay
"Tom McL." <tb***@cwnet.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
|I have a program I am writing on my desktop computer with a screen
| resolution
| of 1024 by 768 when I run the program on my laptop with a screen
| resolution of 1280 by 768. the size and position of the controls are
| changed. I
| have used a number of :
|
| TabControl1.Location = New Point(310, 14 + 12)
|
| TabControl1.Size = New Size(580, 32)
|
| Panel1.Location = New Point(310, 40 + 16)
|
| Panel1.Size = New Size(580, 432)
|
| Could this be the problem?
|
| If so how can I fix this, is there a need to scale the controls?
|
| If so how is this done?
|
|