UI Controls Overlapping & Fonts Issue in Windows Forms Application

杀马特。学长 韩版系。学妹 提交于 2019-12-10 17:49:35

问题


I have made a Windows Forms Application. I have a form with some controls. The Controls overlap, and also Fonts are changed automatically, at some places the fonts go White in Buttons, TextBoxes. I am attaching a picture for more understanding.

1:

This happens in some End User's Systems, I am unable t find why this issue occurs.

Any help would be appreciated.

Thnx in Advance


回答1:


If you are using system fonts and colours, your winforms application is at the mercy of the operating system's font and colour settings.

For example, if the ForeColor property of your buttons is set to ControlText (a system colour) rather than black (for example), your application will be rendered using whatever the operating system's ForeColor property is set to.

Also keep in mind that the operating system's Font Size setting will impact the layout of your forms. If the operating system's font size is set to 125% or 150% you may experience overlapping issues.




回答2:


the group control seems a little small to contain the sub controls, try to make it larger enough for them.




回答3:


Try setting AutoEllipsis property to true. I believe the most right way is using layout controls combined with appropriate anchor and docking options. If set in a right way they should automatically stretch controls when needed



来源:https://stackoverflow.com/questions/11574561/ui-controls-overlapping-fonts-issue-in-windows-forms-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!