如何在WindowsForms中避免空格 [英] How can I avoid whitespaces in my WindowsForms

查看:94
本文介绍了如何在WindowsForms中避免空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发用于创建事件的Windows窗体应用程序.我的表单中的空格存在一些问题.基于某些值字段的可见或不可见.

如何在表单中适合这些字段,以便避免表单中出现空格?预先感谢

Hi,

I am developing a Windows Form application for creating an incident. I have some issues with whitespaces in my Form. Bases on some values fields are visible or may not.

How can I fit those fields in my form, so that I avoid whitespaces in my form? Thanks in advance

推荐答案

我想您必须根据第一个组合框中的用户输入来修改元素的位置(top).另外,您还需要调整表单的height .

另一个也许更好的选择是重新设计UI,这样您就不必即时更改位置和尺寸.突然更改表单大小可能会导致用户界面混乱".
I guess you have to modify the locations (top) of the elements based on the user input in the first combobox. Also you need to ad´just the height of the form.

Another, perhaps better, option is to re-design the UI so that you won''t have to change the locations and dimensions on-the-fly. Suddenly changing the form size may result to a ''restless'' UI.


这篇关于如何在WindowsForms中避免空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆