C#中表單 單選按鈕三個 怎么獲取三個分別的值
uj5u.com熱心網友回復:
bool 按鈕1選定 = radioButton1.Checked;bool 按鈕2選定 = radioButton2.Checked;
bool 按鈕3選定 = radioButton3.Checked;
uj5u.com熱心網友回復:
radioButtonList 推薦。uj5u.com熱心網友回復:
foreach (CheckBox c in this.Controls.OfType<CheckBox>())MessageBox.Show("c.Name" + (c.Checked ? "" : "沒有") + "選擇");
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/123688.html
標籤:C#
上一篇:Access資料庫的并發訪問
下一篇:VS2010 RDLC列印
