I'm having a problem loading a cursor file into Windows Forms.
I type the files in the folder but the program notices that the course file is not valid or is corrupted. But I really need these cursors for developing an application.
I tried to use this code to solve my problem:
void FormLoaded(object sender, EventArgs e){
this.Cursor = new Cursor("app\point.cur");
}
but the code quoted above did not work.
I tried this too but it did not work either:
void FormLoaded(object sender, EventArgs e){
Cursor.Current = new Cursor("app\point.cur");
}
VS2010 says the following message:
Invalid image format. The image file may be corrupted. Parameter name: stream