例如,我正在尝试从c#中的windows窗体应用程序的事件中获取id或复选框的名称。有可能吗?谢谢。。
private void aktifMWcheckBox_CheckedChanged(object sender, EventArgs e)
{
string cbname = sender.Name; // is it possible something like that ???
}发布于 2011-04-03 17:40:44
您应该能够将发送者强制转换为Control类,并访问对象的属性,如名称。
https://stackoverflow.com/questions/5528763
复制相似问题