Page 1 of 1
How do you get vb.net to play gif or avi animations
7 Replies - 3394 Views - Last Post: 28 May 2009 - 04:27 PM
Posted 20 May 2009 - 10:36 AM
Yes I know I sound like a complete n00b, but I'm not, honestly
Replies To: Animations
Posted 22 May 2009 - 09:03 AM
Also is there a way to play MP3 files because the Audio class and SoundPlayer only play .wav files.
Posted 22 May 2009 - 11:30 AM
Dude.. "play the video" is a "video player"! Seriously... wow.
Follow the instructions - drop the windows media player com object into your control.. you can set it up to not show play/back/etc buttons.
Did you even read that tutorial?
That's strange - I just grabbed the first animated gif off google images, created a test project, added a picture box to the form, imported the gif as the image for the picture box, and ran it. The image animated.
Posted 22 May 2009 - 06:51 PM
And im pretty sure theres also a DirectX Video Player that will render a video onto the screen for you.
This post has been edited by Ändrew: 22 May 2009 - 06:53 PM
Posted 28 May 2009 - 02:02 PM
right click on the toolbox>choose items>COM tab>mark windows media player
it will be added to the toolbox.
you can use the .url to choose the video file to play and it can play mp3 too.
if it didn't play videos,then the problem is probably with the codec