http://topic.csdn.net/u/20080417/14/aaff9547-6f58-40de-8739-846516d8de45.html?57626747
privatevoid tabControl1_Selecting(object sender, TabControlCancelEventArgs e)
{
e.Cancel =true;
}
但是副作用很大,这样设定后,怎么操作(编程或消息)都无法切换
所以如果只是想是tab header无效
建议
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
tabControl1.SelectTab(m_nCurIndex);//m_nCurIndex = 当前页的index
}