请点击.Net 3.5上的事件 [英] click event on .Net 3.5 please

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

问题描述

请给我看一个有关NET 3.5中带有单击事件的文本框的教程,非常感谢....

please show me a tutorial for a textbox with click event in NET 3.5, thank you very much...

推荐答案

您期望什么样的教程?

What kind of tutorial are you expecting?

Create your form in design view.
Add a TextBox control.
Highlight it.
Select Events in the properties window.
Scroll to the Click event.
Double click it.
Add code to handle the click.


或:
将处理程序添加到文本框:


Or:
Add a handler to your textbox:

textBox1.Click += new EventHandler(textBox1_Click);

,并提供处理程序:

and provide the handler:

void textBox1_Click(object sender, EventArgs e)
    {
    throw new NotImplementedException();
    }

然后为您的处理程序编码,这样它就不会引发异常...

还是还有别的东西?

Then code your handler so it doesn''t throw an exception...

Or was there something else?


在紧凑型Flash单击事件中不存在,我为该事件实现了代码,但在cf net 3.5上不起作用,无论如何都要感谢响应.:thumbsup :
in compact flash click event doesnt exist, i have a code implemented for this event, but doesnt work on cf net 3.5, thank for the reponse anyway.:thumbsup:


这篇关于请点击.Net 3.5上的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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