有关表格示例的代码 [英] code for exmples about form

查看:96
本文介绍了有关表格示例的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要一些有关c#中任何表单设计的示例.
我正在考试.

Please,

I need some examples about any form design in c#.
I have an exam.

推荐答案

获取Visual C#Express的副本并生成自己的副本.
Get a copy of Visual C# Express and generate your own.


您可以
1.启动Visual Studio

2.创建一个新的Windows Forms项目
它将具有形式"Form1".

3.在Project Explorer中,单击Form1.cs左侧的小"+"号.
分支将展开,显示"Form1.Designer.cs"和"Form1.resx"

4.双击"Form1.Designer.cs"
将打开一个代码定义窗口,其中包含自动
为Form1创建了代码.

不要担心在Form1.Designer.cs中更改代码,因为下一次在图形编辑器中进行更改时更改将消失(您的代码在Form1.cs中,您应该将其重命名为有意义的东西,顺便说一句).但这可能是了解工作代码的好开始.
You could
1. Start Visual Studio

2. Create a new Windows Forms project
It will have a form "Form1" in it.

3. In Project Explorer, click on the little "+" just left of Form1.cs
A branch will expand revealing "Form1.Designer.cs" and "Form1.resx"

4. Double-click on "Form1.Designer.cs"
A code definition window will open containing the automatically
created code for Form1.

Don''t bother changing code in Form1.Designer.cs, since your changes will be gone next time you change something in the graphical editor (Your code goes in Form1.cs, which you should rename to something meaningful, btw). But it could be a good start to see what working code looks like.


您想让我们给您提供可以在考试中使用的示例吗?
那有什么意义呢?如果它帮助您通过了考试,那么可能雇用您的任何人都会了解我的能力,而不是您的能力.更糟糕的是,他可能雇用您,而我可能必须与您一起工作-并像我一样做您的工作.
You want us to give you examples you can use in an exam?
What would be the point of that? If it helped you pass the exam, then anyone who might employ you gets an idea of my abilities, not yours. Worse, he might employ you and I might have to work with you - and do your job as well as my own.


这篇关于有关表格示例的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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