Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
With ".ani" being animated in the form.

I want to make browsing in folders and seeing their contents of cur and ani.

I just want the way to display cur and ani files.

What I have tried:

pictureBox1.ImageLocation=@"D:\cur1.cur";

it shows me the picturebox with a pic of a red X in it as an error.
Posted
Updated 15-Jun-23 17:46pm
Comments
Richard MacCutchan 15-Jun-23 15:07pm    
These are cursor images and are different from ordinary png, bmp and jpg types, so you will need an alternative way of displaying them. Google should find you some sample code.
RobertoSky 15-Jun-23 20:05pm    
What to search for plz?
Richard MacCutchan 16-Jun-23 3:56am    
Seriously? You want to work with two very specific file types and you have no idea what to search for?
RobertoSky 16-Jun-23 3:57am    
I searched a lot, I didn't find anything good using my search terms, sorry.
Dave Kreskowiak 15-Jun-23 17:37pm    
You have to load and parse .CUR and .ANI files with your own code. None of the built-in controls and classes will do this for you.

1 solution

As Richard has said, .CUR files are cursors: they are the various shapes the mouse pointer can have; and .ANI files are the animated version (spinners and so on).

There is no standard control that can display either of these - you will probably have to write your own code but this may give you a starting point: Animated Cursor-Custom Control[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900