Form scaling with different screen dpi settings

  • Thread starter Thread starter Fabio De Luca
  • Start date Start date
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.
 
* 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?
 
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.
 
Back
Top