bman9111
asked on
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
thank u in advance
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.
try setting the form's autoscale property
I guess to be a little clearer...I should say:
try setting the form's autoscale property to true
try setting the form's autoscale property to true
just found this, thought it might help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms12102002.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms12102002.asp
ASKER
I set the autoscale, but still no luck.... that article is great, but it is in c#
ASKER
any ideas anyone???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.