Thanks Jay, but it seems not work in my case. When I change the resolution
from 600*480 to 1024*768, the screen layout can't retain the same as
600*480. It'll get smaller b4 change. And I found the default setting in
Form already marked to "True". And also, I try some code given from the Web
as below
Dim sf as SizeF
sf = Me.GetAutoScaleSize(me.Font)
Me.AutoScaleBaseSize = sf.ToSize
But it still don't work. It's so strange.
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
Ellis,
In addition to the form's Scale method, you can use AutoScale = true & the
form will take care of it for you (I've hadn't had any real problems with
AutoScale, however I've seen reports other's have).
Charles Petzold's book "Programming Microsoft Windows With Microsoft
Visual Basic .NET - Core Reference" from MS Press includes a section on how
AutoScale & Scale works. Plus gives code & explains how to do your own
scaling...
Hope this helps
Jay
"Ellis Yu" <el******@transfield.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl... Dear all,
In vb6, I'll do it by getting the ratio between the resolution
setting in screen and in design mode. Afterward, adjust each control's
position and size with the ratio according to the control type. Is there
any
other way do it in .Net? Thanks
Best Rdgs
Ellis