刷新c#中的radiobuttons [英] Refreshing radiobuttons in c#

查看:67
本文介绍了刷新c#中的radiobuttons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的表格上有4个单选按钮和一个按钮。单击按钮时,radiobuttons lbl名称会发生​​变化,使用数据库中的记录名称更新radiobuttons lble名称。



有没有办法可以将这些radiobutton刷新到每当单选按钮名称更改时取消选中。

例如我遇到的问题是当我选择一个radiobutton1并单击按钮时lblname更新但仍然检查了radiobutton ..无论如何,当lbl名称改变时我可以更改为未选中。



我试图将4个radiobutton放在一个组合框中并运行:

Hi
I have got 4 radio buttons on my form and a button. the radiobuttons lbl names change when the button is clicked, the radiobuttons lble names are updated with record names from a database.

is there a way I can refresh these radiobutton to be unchecked whenever the radio buttons lbl name is changed.
For example the issue I'm having is when I select a radiobutton1 and click the Button the lblname updates but radiobutton remains checked.. is there anyway I can change to be unchecked when lbl name changes.

I have tried to put the 4 radiobuttons in a groupbox and run:

groupBox1.Refresh()

it没用。



谢谢

it didn't work.

Thank you

推荐答案

将所有单选按钮的选中值设置为false。

例如 rdBtn1.Checked = false;
Set the checked value of all the radio buttons to false.
For e.g. rdBtn1.Checked = false;


这篇关于刷新c#中的radiobuttons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆