Current location - Music Encyclopedia - QQ Music - How to play music and add FLASH and GIF pictures in VB?
How to play music and add FLASH and GIF pictures in VB?

To play music, you can select Windows Media Player in Parts->Controls, and then add the address of the music you want to play in the URL in its property bar.

To play Flash, you can Select the shockwave flash control in Components->Control, and then use shockwaveflash1.movie=xxx\xxx\xxx.swf in the code to add the Flash file to be played

There are several ways to add Gif

(1) Use third-party controls, such as Gif89. But those that are easy to use generally require registration and payment.

(2) Use the WebBrowser control to select Microsoft Internet Controls in Parts->Controls and then In the code, use WebBrowser1.Navigate xxx\xxx\xxx.gif to add the Gif to be played

(3) Convert the Gif to Swf and then use Flash player to play it

Let’s talk about this first There are several other methods that I believe you will find in your learning applications.