Form scaling with different screen dpi settings

F

Fabio De Luca

Hi, I have a problem with different screen dpi settings.
I am developing a winform in vb .net, this form has a
tabcontrol that contains a panel with some controls inside,
and user control, it is developed using a screen dpi
setting of 96.
but when i run it on a sistem with a dpi setting of 120,
the panel, which is ont the right side of the tabcontrol
goes out of the form and so it becomes unusable.
The panel is anchored to top,bottom,right, and the user
control is anchored to top,bottom,left,right,more the
tabpanel is anchored top,bottom,left,right. has anyone
an idea of what to do to overcome this problem?
(other than having to write myself the controls resizing
and repositioning code)

Thanks in advance for any help.
 
H

Herfried K. Wagner [MVP]

* Fabio De Luca said:
Hi, I have a problem with different screen dpi settings.
I am developing a winform in vb .net, this form has a
tabcontrol that contains a panel with some controls inside,
and user control, it is developed using a screen dpi
setting of 96.
but when i run it on a sistem with a dpi setting of 120,
the panel, which is ont the right side of the tabcontrol
goes out of the form and so it becomes unusable.
The panel is anchored to top,bottom,right, and the user
control is anchored to top,bottom,left,right,more the
tabpanel is anchored top,bottom,left,right. has anyone
an idea of what to do to overcome this problem?
(other than having to write myself the controls resizing
and repositioning code)

Did you play around with the form's 'AutoScale' property?
 
F

Fabio De Luca

Yes I did it, but it didn't worked, it seems like vb scales
only the first level controls, but not the controls
contained into them.
 

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