private void Lbsorden_MouseMove(object sender, MouseEventArgs e) { int index = Lbsorden.IndexFromPoint(Lbsorden.PointToClient(Cursor.Position)); if (index != prevIndex) { prevIndex = index; Lbsorden.Invalidate(); } }
private void Lbsorden_MouseLeave(object sender, EventArgs e) { prevIndex = -1; Lbsorden.Invalidate(); }