日期:2014-05-18  浏览次数:20885 次

如何让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中,同一容器中的单选按钮是互相干扰的