private void WndClose_MouseEnter(object sender, EventArgs e) { Cursor = Cursors.Hand; using (Graphics GFX = WndClose.CreateGraphics()) { ControlPaint.DrawBorder3D(GFX, WndClose.DisplayRectangle); } }
private void WndClose_MouseLeave(object sender, EventArgs e) { Cursor = Cursors.Default; WndClose.Invalidate(); }