在C#中设计Windows窗体 [英] design windows form in C#

查看:218
本文介绍了在C#中设计Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设计Windows窗体?

How to design windows form? Any way to design windows form?

推荐答案

最简单的方法是在Designer中创建新表单:

1)打开解决方案资源管理器窗格
2)右键单击您的项目,然后选择添加",然后选择"Windows窗体..."
3)在出现的对话框中,给它取一个合理的名称,然后按添加"按钮
4)您将以新的空白表格返回设计师.
5)确保工具箱已打开,并且您可以将任何想要的控件拖放到窗体上. (不依赖于VS默认名称,而是立即更改它们以反映其用途是一个好主意:"button3"不如"butCancel"那样容易记住)

然后,您所需要做的就是在其后面添加代码!
The easiest way is to create a new form in the Designer:

1) Open the Solution Explorer Pane
2) Right click your project and select "Add" then "Windows Form..."
3) In the resulting dialog, give it a sensible name and press the "Add" button
4) You will be returned to the designer in a new, blank form.
5) Make sure the ToolBox is open, and you can drag any controls you want to the form and drop them on. (It is a very good idea not to rely on the VS default names, but to change them immediately to reflect their purpose instead: "button3" is not as easy to remember as "butCancel")

Then all you need to do is add code behind it!


这篇关于在C#中设计Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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