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
}

相关文章:

  • 2021-05-17
  • 2021-09-19
  • 2021-06-15
  • 2022-03-05
  • 2022-12-23
猜你喜欢
  • 2021-11-07
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-02-08
  • 2022-01-17
相关资源
相似解决方案