摘要: C#中toolbar哪里找?toolbar 有的,只是默认情况下没加载,在工具箱上点右键-->选择项-->>Net FrameWork组件-->把toolbar前的勾勾上(System.windows.Forms)就有了。未完... 阅读全文
posted @ 2013-03-02 21:48 BaronYan 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 private void 新建NToolStripMenuItem_Click(object sender, EventArgs e)2 {3 //响应“新建”菜单单击事件4 MessageBox.Show(this, "您选择了新建菜单", "信息提示",5 MessageBoxButtons.OK, MessageBoxIcon.Information);6 } 阅读全文
posted @ 2013-03-02 20:56 BaronYan 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1 private void Form1_Load(object sender, EventArgs e)2 {3 this.toolTip1.SetToolTip(this.textBox1, "请输入名字");4 } 阅读全文
posted @ 2013-03-02 20:48 BaronYan 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 private void button1_Click(object sender, EventArgs e) 2 { 3 this.errorProvider1.Clear(); 4 if (this.textBox1.Text.Length<6||this.textBox1.Text.Length>12) 5 { 6 this.errorProvider1.SetError(this.textBox1, "输入有误"); 7 Dialo... 阅读全文
posted @ 2013-03-02 20:36 BaronYan 阅读(176) 评论(0) 推荐(0) 编辑