Button_click事件无效 [英] Button_click event is not working

查看:593
本文介绍了Button_click事件无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击按钮时,控件没有转移到Button_click事件并且没有采取任何措施?怎么做这个问题?

When I click on the Button, control is not transfering to the Button_click event and No action is taken? what to do for this problem?

推荐答案

事件是否链接到按钮?

在表单设计器中检查它或者通过代码

Is the event linked to the button?
Check it in the form designer or do it by code
public void button1_Click(object sender, EventArgs e){
 ....
}

public Form1{
  this.button1.Click += this.button1_Click;
}


这篇关于Button_click事件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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