different button size on different computer

  • Thread starter Thread starter Thinh Dang
  • Start date Start date
T

Thinh Dang

I have problem with VS2003
VB.NET Project

On my computer, I set the button size to 75, 37 and save the project
When I open on my friend computer, the button show up to be 90,43

What's wrong?

Microsoft Dev. Env. 2003 - Version 7.1.3088
Microsoft .NET Framework 1.1 version 1.1.4322
 
Thinh,
Was the button itself the same size relative to the form?

Do yours & his monitors have the same resolution & DPI size?

Windows Forms have an AutoScale ability that the designer stores the
AutoScaleBaseSize used when designing the form, then when it runs it sets
the form property so the controls turn out to be the same relative size on
the new computer.

Charles Petzold's book "Programming Microsoft Windows with Microsoft Visual
Basic.NET has a good explanation of how this works.

Hope this helps
Jay
 
Back
Top