A
Andy O'Neill
I'm trying to use an animated cursor in a WPF application.
Something is going wrong and I can't work it out.
I wonder if anyone has come across this previously.
I copy stopwtch.ani to the project folder.
Add it to the project.
Set it's build property to resource
Use the following code snippet:
StreamResourceInfo sri = Application.GetResourceStream
(new Uri("stopwtch.ani", UriKind.Relative));
Cursor customCursor = new Cursor(sri.Stream);
this.Cursor = customCursor;
error
Cannot locate resource 'stopwtch.ani'.
Thanks in anticipation.
Something is going wrong and I can't work it out.
I wonder if anyone has come across this previously.
I copy stopwtch.ani to the project folder.
Add it to the project.
Set it's build property to resource
Use the following code snippet:
StreamResourceInfo sri = Application.GetResourceStream
(new Uri("stopwtch.ani", UriKind.Relative));
Cursor customCursor = new Cursor(sri.Stream);
this.Cursor = customCursor;
error
Cannot locate resource 'stopwtch.ani'.
Thanks in anticipation.