Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Terry Olsen
Guest
 
Posts: n/a
#1: Mar 8 '06
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?

*** Sent via Developersdex http://www.developersdex.com ***
NickP
Guest
 
Posts: n/a
#2: Mar 9 '06

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


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/de...eoperation.asp

This will then use the shells file copy dialog.

I hope this info helps!

Nick.

"Terry Olsen" <tolsen64@hotmail.com> wrote in message
news:u4ItQLwQGHA.6084@TK2MSFTNGP10.phx.gbl...[color=blue]
> 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?
>
> *** Sent via Developersdex http://www.developersdex.com ***[/color]


Closed Thread