单击按钮时如何制作自定义光标

How to make a customize cursor when you click a button

单击将投射等待光标的按钮时如何自定义

比如当你悬停鼠标时,例如在后退按钮上,它将是默认光标或手的东西,当我点击它时它会像这样显示

提前谢谢你

private void pictureBox1_MouseUp(object sender, EventArgs e)
{
    pictureBox1.Cursor = Cursors.WaitCursor;
}

我设法回答了我的问题

private void btnLOGIN_Click(object sender, EventArgs e)
    { 
        try
        {

            Cursor.Current = Cursors.WaitCursor;
            Application.DoEvents();
            System.Threading.Thread.Sleep(500);//set time to load

            if (txtUser.Text == "admin" && txtPass.Text == "")
            {
                this.Hide();
                MENU ss = new MENU();
                MessageBox.Show("Welcome to CornerFlag's Product Monitoring System!", "Login Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ss.Show();
            }
            else
            {
                MessageBox.Show("Invalid Input , Try Again ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                txtUser.Clear();
                txtPass.Clear();
            };

        }
        finally
        {
            Cursor.Current = Cursors.Default;
        }

    }