class TabControlEx: TabControl {
private Panel Pan = new Panel(); public TabControlEx()
{
base.Parent = Pan; // 实际窗体只显示了 Pan ,没有任何标签页,此行似乎无效
base.Dock = DockStyle.Fill;
} public new Control Parent
{
get { return Pan.Parent; }
set { Pan.Parent = value; }
} public new bool Visible
{
get { return Pan.Visible; }
set { Pan.Visible = value; }
}
}
private Panel Pan = new Panel(); public TabControlEx()
{
base.Parent = Pan; // 实际窗体只显示了 Pan ,没有任何标签页,此行似乎无效
base.Dock = DockStyle.Fill;
} public new Control Parent
{
get { return Pan.Parent; }
set { Pan.Parent = value; }
} public new bool Visible
{
get { return Pan.Visible; }
set { Pan.Visible = value; }
}
}
解决方案 »
- C#读取Access数据库
- GridView的datasource用返回值为dataset类型的方法赋值为什么不行?
- 时间转换Oct 28 15:06:03 2008
- 求助,C#中写一个能关掉自身线程的代码!
- 如何写代码察看163邮箱的积分?
- 关于水晶报表子报表的参数问题
- (WinForm)请问用那个控件或控件组合实现此功能!http://www.sysrl.com/jarod/Multi-Column%20Dropdown.jpg
- 为什么winform DataGridView在读取的时候会多出来个字?Listview却不会显示出来
- 关于.net应用程序的发布
- 一个private函数中调用另一个private函数中的变量,该如何实现?
- 设计数据库表结构的时候,有多少人会关注外键?
- 如何用C#获取SQL SERVER数据库中一个表的权限,如Table1的读,写,删,更新的权限并返回相应的值呢??
{
Parent = Pan; // 实际窗体只显示了 Pan ,没有任何标签页,此行似乎无效
Dock = DockStyle.Fill;
}这样呢