private void pictureBox2_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if ((e.X > 0 && e.X < 100) && (e.Y > 0 && e.Y < 100))
            {   //这里怎样让鼠标变成手形?
                Form2 ff = new Form2();
                ff.Show();
            }
        }

解决方案 »

  1.   

    参考下:
    private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
    {
    Rectangle rect = new Rectangle(20, 20, 50, 50);
    if (rect.Contains(e.Location))
    {
    this.pictureBox1.Cursor = Cursors.Hand;
    }
    else
    {
    this.pictureBox1.Cursor = Cursors.Default;
    }
    }
      

  2.   


    this.pictureBox2.Cursor = Cursors.Hand;
      

  3.   

            private void pictureBox2_MouseEnter(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Hand;
            }        private void pictureBox2_MouseLeave(object sender, EventArgs e)
            {
                this.Cursor = Cursors.Default;
            }
      

  4.   

            private void pictureBox1_MouseEnter( object sender, EventArgs e )
            {
                this.Cursor = Cursors.Hand;
            }        private void pictureBox1_MouseLeave( object sender, EventArgs e )
            {
                this.Cursor = Cursors.Default;
            }
      

  5.   

            private void pictureBox1_MouseDoubleClick( object sender, MouseEventArgs e )
            {
                int x = e.X;
                int y = e.Y;
                if( ( x > 0 && x < 100 ) && ( y > 0 && y < 100 ) )
                {
                    this.Cursor = Cursors.Hand;
                }
                else
                {
                    this.Cursor = Cursors.Default;
                }
            }