第一个windows应用程序
2013-09-27 11:39
302 查看
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace HelloWin { public partial class HelloFrm : Form { public HelloFrm() { InitializeComponent(); } private void HelloFrm_Load(object sender, EventArgs e) { this.Text = "这是一个具有输入功能的窗体!"; } private void btnOK_Click(object sender, EventArgs e) { string result; result = txtName.Text + "小姐 ";//txtName 是TextBox1的名字,Text是文本内容 result += "恭喜你,学会了C#程序设计!"; lblShow.Text = result;//lblShow是labl2的名字!属性设置时改的!Text是文本内容 //txtName.Text是标签一的内容,lblShow.Text是标签二的内容 } } }
相关文章推荐
- 运用JavaScript构建你的第一个Metro式应用程序(onWindows 8)(二)
- 运用JavaScript构建你的第一个Metro式应用程序(onWindows 8)(二) (转)
- VS2008创建第一个Windows应用程序
- 第一个 Windows 应用程序
- 第一个Windows应用程序--启动函数、入口点函数与退出函数
- [毕业生的商业软件开发之路]开发第一个Windows应用程序
- 运用JavaScript构建你的第一个Metro式应用程序(onWindows 8)(三) (转)
- 第一个 Windows 应用程序
- Windows桌面应用程序(1-1st) 使用DirectX创建您的第一个Windows应用程序
- 运用JavaScript构建你的第一个Metro式应用程序(onWindows 8)(三)
- 第一个C# windows应用程序
- Windows 8实用窍门系列:1.使用Xaml+C#开发第一个Metro Style应用程序
- 运用JavaScript构建你的第一个Metro式应用程序(on Windows 8)(一)
- 用C#开发第一个WINDOWS应用程序
- 1.2 第一个Windows应用程序实例
- Windows Workflow Foundation(2) - 第一个workflow应用程序
- 第一个Windows窗口应用程序
- 用C#开发第一个WINDOWS应用程序
- Qt.Enterprise.v3.3.2在windows下安装并编译第一个应用程序
- Windows 8实用窍门系列:1.使用Xaml+C#开发第一个Metro Style应用程序 推荐