Software Development Network>> Visual Studio>> Changing the cursor programmatically
button.Cursor = new Cursor("foo.cur");
Note that we only support cursor files on the file system, not pack: or http:.
Changing the cursor programmatically
Jack He
Absolute path information is required.
My cursor1.cur is in the same directory where my application.exe is
nikkitan
this.ImageMap.Cursor = new System.Windows.Input.Cursor(@"E:\Visual Studio 2005\TestApplications\TrackingApplication\TrackingApplication\bin\Debug\cursor1.cur");
Carnage_bz
Joe W
button.Cursor = new Cursor("foo.cur");
Note that we only support cursor files on the file system, not pack: or http:.