Exemplo n.º 1
0
        // Display an appropriate cursor.
        private void treePictureBox_MouseMove(object sender, MouseEventArgs e)
        {
            Cursor newCursor = Cursors.Cross;

            if (Root.NodeAtPoint(e.Location) != null)
            {
                newCursor = Cursors.Default;
            }
            if (treePictureBox.Cursor != newCursor)
            {
                treePictureBox.Cursor = newCursor;
            }
        }