摘要: 我们在程序中经常会用到MessageBox。 MessageBox.Show()共有21中重载方法。现将其常见用法总结如下:1.MessageBox.Show("Hello~~~~");最简单的,只显示提示信息。2.MessageBox.Show("There are something wrong!","ERROR");可以给消息框加上标题。3.if(MessageBox.Show("Delete this user?","Confirm Message",MessageBoxButtons. 阅读全文
posted @ 2013-10-12 21:36 anthow 阅读(3130) 评论(0) 推荐(1) 编辑
摘要: Application.StartupPath是一个只读属性,是不可以设置的。Application.StarupPath获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称。既是Application.StartupPath=你启动项目的BIN下边的目录且Application.StartupPath不是以\结束的。可以在后面加“\\”(转义字符)例如: private void Form1_Load(object sender, EventArgs e) { MessageBox.Show(Application.StartupPath); ... 阅读全文
posted @ 2013-10-12 21:04 anthow 阅读(11433) 评论(1) 推荐(1) 编辑
摘要: c# break continue 阅读全文
posted @ 2013-10-12 15:04 anthow 阅读(900) 评论(0) 推荐(0) 编辑