单选按钮触发扩展器 [英] Radio Button to trigger Expander

查看:65
本文介绍了单选按钮触发扩展器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有两个单选按钮
rbtn1和rbtn2
和两个扩展器exp1和exp2

所以我选择rbtn1 exp1应该扩展并禁用exp2
和我选择rbtn2 exp2应该扩展并禁用exp1



在此先感谢

Hello All,
I have two radio buttons
rbtn1 and rbtn2
and two expanders exp1 and exp2

so wen I select rbtn1 exp1 should expand and disable the exp2
and wen I select rbtn2 exp2 should expand and disable the exp1



Thanks in advance

推荐答案

在窗体设计器中,双击rbtn1. Visual Studio将为您创建一个CheckedChanged事件处理程序.在该事件处理程序中,检查选中了哪个单选按钮,并相应地设置扩展器.
In the Forms Designer, double-click on rbtn1. Visual Studio will create a CheckedChanged event handler for you. In that event handler, check which radio button is checked and set the expanders accordingly.


这篇关于单选按钮触发扩展器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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