void _MouseMove(object sender, MouseEventArgs e)
{
Rectangle r;
for (int i = 0; i < TabCount; i++)
{
r = ConvertRectangleBounds_CloseButton(GetTabRect(i));
if (r.Contains(e.Location))
{
// Cursor is on the close button
TabPages[i].ImageIndex = 1;
}
else
{
// Cursor is NOT on the close button
TabPages[i].ImageIndex = 0;
}
}
}