我可以动态更改窗体的布局 [英] Can I dynamically change the layout of a windows form

查看:112
本文介绍了我可以动态更改窗体的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys我只是想问一下,是否有可能在运行时完全更改表单的布局,就像我在表单A上有一个文本框和一个按钮。当我按下按钮时,按钮和文本框应该消失并且表格A上应该出现组合框或3个新文本框。



谢谢

Hello Guys I just wanted to ask that is it possible to change the layout of a form completly at runtime like if I have a textbox and a Button on form A. When I press the button the button and textbox should dissapear and a combo box or 3 new text box should appear on form A.

Thanks

推荐答案

是的,你甚至可以在运行时从头开始构建整个表单。



所有你需要做的就是改变你想要以某种方式操作的控件的属性。
Yes, you can even build an entire form from scratch at runtime.

All you have to do is change the properties of the controls you want to manipulate somehow.


这篇关于我可以动态更改窗体的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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