日期:2014-05-17 浏览次数:20976 次
private void tabControl1_MouseMove(object sender, MouseEventArgs e)
{
for (int i = 0; i < tabControl1.TabPages.Count; i++)
{
if (tabControl1.GetTabRect(i).Contains(e.Location))
{
this.Text = tabControl1.TabPages[i].Name;
break;
}
}
}