首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么让TABCONTRL 不同TABPAGE的radiobutton化为一组

2012-08-07 
如何让TABCONTRL 不同TABPAGE的radiobutton化为一组如何让TABCONTRL 不同TABPAGE的radiobutton化为一组只

如何让TABCONTRL 不同TABPAGE的radiobutton化为一组
如何让TABCONTRL 不同TABPAGE的radiobutton化为一组
只能单选其中一个

[解决办法]
自己写个方法来限制

Foreach(TabPages tp in this.tabControl1.TabPages)
{
Foreach(Control c in tp.Controls)
{
if(c is RadioButton)
{
.......
}
}
}
[解决办法]
你可以在tabpage中再放置一个容器 比如panel,groupbox然后这是边框线不可见
winform中,同一容器中的单选按钮是互相干扰的

热点排行