JoddYt
JoddYt
CC#
Created by JoddYt on 2/4/2023 in #help
❔ how do i make a button that changes the current windows mouse cursor? (not only in winform)
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace PointerX
{

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void guna2Button1_Click(object sender, EventArgs e)
{
System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
this.Cursor = new Cursor("SlySpyOriginal.cur");
}
}
}
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace PointerX
{

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void guna2Button1_Click(object sender, EventArgs e)
{
System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
this.Cursor = new Cursor("SlySpyOriginal.cur");
}
}
}
i have made this but it only changes the cursor for like 0.1 second
22 replies