vb.net dpi

I have created programs for tons of people. Now I have one customer that I am stuck with sizing problems. It seems that the user changed the default dpi from normal to large and now buttons are not showing labels are moved out of order, etc. A real mess. Now I could manually resize things but then if the user runs it on a dpi of normal then there screen will be messed up. Is there an easy way to correct this problem. FYI I have tons of textboxs, labels, pictures, buttons, etc.......


thank u in advance


LVL 8
bman9111Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Erick37Commented:
If this program was upgraded from VB6, make sure you change all of the sizing code to use .NETs default unit of pixels.  The DPI issue was a problem in VB6 because the value of TwipsPerPixel changed when switching to large fonts.


samtran0331Commented:
try setting the form's autoscale property
samtran0331Commented:
I guess to be a little clearer...I should say:
try setting the form's autoscale property to true
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

samtran0331Commented:
bman9111Author Commented:
I set the autoscale, but still no luck.... that article is great, but it is in c#


bman9111Author Commented:
any ideas anyone???
samtran0331Commented:
sorry bman...all the research I found says that autoscale *should* do the trick...
If you think that msdn link I posted above would be more insightful with vb.net code, try:

http://www.developerfusion.com/utilities/convertcsharptovb.aspx
it will convert *simple* code.

http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html
good reference.

... it might make you feel a little better to know that Adobe Photoshop is in the same boat as your app.
At home I have a big 21" monitor and run it at 1600x1200 to get as much screen as I can, but the fonts are small...so when I changed the font-size in Windows, all my menus in Photoshop were completely screwed up.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.