How to load AVI's from shell32.dll & play them?

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I'm working on a file copy component. I'd like to load the "file copy"
animation from the shell32.dll and play it (in a picturebox?) while the
file is copying.

This guy did it here,
http://www.codeproject.com/miscctrl/avi_animation.asp, in c++ but I
can't make sense out of it.

Can someone give me some pointers on how to do this in VB?
 
Hi Terry,

In .NET you can simply make your own dialog and put an animated GIF into
a PictureBox and it will cycle through from start to finish until the copy
is completed. One word of advice though would be to run the dialog in a new
thread separate from the copy operation or you will struggle to see the
animation updating due to the thread being too busy.

Alternatively you can use the shell api's to copy a file,

Lookup SHFileOperation -
http://msdn.microsoft.com/library/d...shell/reference/functions/shfileoperation.asp

This will then use the shells file copy dialog.

I hope this info helps!

Nick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top