开发者

C#: Custom control is resizing on its own

I have a custom control built of other controls that is being loaded in two different places. On one it appears开发者_运维百科 the way it does in the designer, as expected, on the other it is being resized smaller without being instructed to do so. Even when I explicitly adjust the size in code the control appears to get bigger, but the controls within are still smaller than they should be. What could causing this to happen?


Any differences in the font size between the custom controls' containers (form, panel, etc.)?

See if setting your control's AutoScaleMode to Dpi helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜