different button size on different computer

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top