this.AcceptButton = button1的用法:
2015-11-17 23:53
387 查看
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Test02 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.AcceptButton = button1; } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("引发了接受按钮1"); } } }
this.AcceptButton = button1;只是能对选中的按钮进行操作,并不能对未选中的进行操作。
相关文章推荐
- 树状数组
- 3032-杨辉三角
- jmail + c#实现邮件的接收
- ELK学习8_ELK数据流传输过程_问题总结1
- 从相册选取图片
- laravel学习笔记二
- 南大软院大神养成计划-第二天
- cin 和 getchar()
- Android屏幕适配分享
- python中的三个读read(),readline()和readlines()
- java线程池简述
- 各种 真机远程调试 方法 汇总
- 泛型第二遍
- Alpha阶段个人贡献分及转会人员确定
- salt Syndic 的实现
- 英音美音加拿大发音区别大盘点
- [Objective-C]NSLog与printf的区别
- Qt环境搭建(Qt Creator)
- Qt环境搭建(Qt Creator)
- 内网渗透一:利用Xss漏洞进入内网