开发者

is there such thing as resetting radio button?

开发者 https://www.devze.com 2023-03-01 15:55 出处:网络
i would like to create a reset button that will unchecked the checked radiobutton in windows form.. can i just clear it by using radio开发者_开发知识库button.Clear();?Why not

i would like to create a reset button that will unchecked the checked radiobutton in windows form.. can i just clear it by using radio开发者_开发知识库button.Clear();?


Why not

radiobutton.Checked = false 

?

Besides I don't see a Clear() method for System.Windows.Forms.RadioButton.


radiobutton.Checked = false;


radioButton1.Checked = false;

Ref.


I tried like this to clear the Radiobutton or RadiobuttonList

Radiobutton.ClearSelection();

its working..

0

精彩评论

暂无评论...
验证码 换一张
取 消