如果需要显示某个页面,则让他的Parent就是TabControl的控件名称,如果要隐藏,则等于null
????
private void ToolStripMenuItemTeachPanelBasic_Click(object sender, EventArgs e)
{
TabPageTeachPanel1.Parent = TabControlTeachPanel;
TabPageTeachPanel2.Parent = null;
TabPageTeachPanel3.Parent = null;
}
?
private void ToolStripMenuItemTeachPanelDebug_Click(object sender, EventArgs e)
{
TabPageTeachPanel1.Parent = TabControlTeachPanel;
TabPageTeachPanel2.Parent = TabControlTeachPanel;
TabPageTeachPanel3.Parent = null;
}
?
?
更多教学视频和资料下载,欢迎关注以下信息:
我的优酷空间:
http://i.youku.com/acetaohai123
?
我的在线论坛:
http://csrobot.gz01.bdysite.com/
?
问题交流:
QQ:910358960
邮箱:[email protected]
?
时间: 2024-11-05 11:24:36