In a UserControl I want to change the mouse cursor from the arrow, to a hand icon.
What I currently do is this:
this.Cursor = Cursors.Hand;
I tested this method. It's OK. This is my apply:
[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern IntPtr LoadCursorFromFile(string fileName);
Cursor myCursor;
private void tsbtn_ZoomIn_Click(object sender, EventArgs e)
{
IntPtr handle = LoadCursorFromFile("view_zoom_in.cur");
myCursor = new Cursor(handle);
zg1.Cursor = myCursor;
}