[英]Get selected RadioButton inside a group
我有一個帶有名為priceClassGroupBox的組框的winforms應用程序。 在其中,我動態添加RadioButtons並為其命名 ,例如radio1 , radio2 , radio3 。
我有兩個問題:
例如
RadioButton rdo = (RadioButton)priceClassGroupBox.Controls.Find("radio1", false);
2。 不,您不必遍歷並找到所選的單選按鈕
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.