单击该控件,我需要知道我单击哪个控件 [英] clicking the control i need to know which control i click

查看:99
本文介绍了单击该控件,我需要知道我单击哪个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行时创建了一个标签,标签上带有不同的标签文本.当我双击标签时,我应该知道我单击了哪个标签.im为Windows应用程序做标签.

hi i m creating a label at runtime with different label text on it.and when i double click on the lable i should know which label i clicked.i m doing it for windows application

推荐答案

您好,

您能告诉我使用哪种类型的应用程序吗?
Windows还是Web ?

谢谢,
Imdadhusen
Hi,

Can you please let me know which types of application are using?
either Windows or Web?

Thanks,
Imdadhusen


您应该尝试阅读文档一段时间.事件处理程序具有发送者属性.就是生成事件的控件.
You should try to read the documentation some time. The event hander has a sender property. That is the control that generated the event.


这篇关于单击该控件,我需要知道我单击哪个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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