问题描述
亲爱的所有人,
我正在使用Windows应用程序!我使用了一些动态单选按钮并提交.现在我要验证单选按钮的值!即要通过点击提交按钮来计算结果.
现在我有需要获取特定按钮的点击事件的情况.例如,假设我单击了第二个提交按钮,则需要验证相同的结果值.
如何获得点击事件的索引/提交按钮的名称!...
它将有N个按钮,因此如何获取提交按钮的确切值!
任何形式的链接,建议和特别的专家建议都将受到高度赞赏.
谢谢与问候
Balkrishna Raut!单选按钮,它是RadioButton实例.您所要做的就是将其转换为RadioButton,然后离开:
private void myRadioButton_Click(object sender, EventArgs e) { RadioButton radio = sender as RadioButton; if (radio != null) { // Handle the click. } }
Dear All,
i am working on Windows application! i have used some dynamic radio buttons & submit. now i want verify the radio button values! i.e. wants to calculate the result on click of submit buttons.
now i have situation where i need get the click event for particular button. for example suppose i have clicked second submit button i need verify the resultant value for the same.
how can get index/Name of submit button on click event!...
it will have N number of button so how can get the exact value of submit button!
Any kind of link, suggestion and specially expert advice would be highly appreciated.
Thanks & regards
Balkrishna Raut!
这篇关于动态按钮事件处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!