DPI does not scale properly

I created a custom UserControl that functions the same as numbericUpDown, but with various improvements. For example, it can display fractions. However, this control does not scale like some of my other controls in my form, making my user interface look awkward.

I played with AutoScaleMode of both the control and the parent control. Nothing seems to work, although setting AutoScaleMode to None seems less influential than other settings. I also tried manually reducing the size of the control in relation to the drop-down list next to it. This did not work. I'm pretty stuck, and I don't know how to counter this.

alt text

Any suggestions?

I provide an understanding of DPI for Win7 and higher.

+4
source share
1 answer

I solved this problem. For those interested, my numericUpDown element is inside another user control that I made. This AutoScaleMode control was not set to DPI and therefore did not scale properly. The answer is for all controls to use the same AutoScaleMode.

+3
source

All Articles