animated gif

How can I use a form which contains a picturebox whose Image-Property is set to an animated gif to show execution of some code instead of setting the cursor to WaitCursor? The way I tried it, my gif is only animated after code execution ended. It must be parallel: while in the calling form code is executed the called form is shown with its animated gif.

Loader.
Up arrow icon