Winforms Cursor

48 views Asked by At

I have a PictureBox I want to change it's cursor so am doing the following

picBox.Cursor = new Cursor(@"C:\Users\User\Desktop\crop1.cur");

it throws this exception :

An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

Additional information: Image format is not valid. The image file may be corrupted.

the file am using : The Cursor.cur

without using P/Invoke ....

0

There are 0 answers