//如果鼠标在区域内就关闭选项卡
bool isClose=myTabRect.Contains(new Point(e.X,e.Y));
if (isClose)
{
tabControl1.TabPages.Remove(tabControl1.SelectedTab);
}
}
}
}