English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to play a music file in my VB program. Also, is it possible to put an animated image (.gif, .jpeg) in a VB program??

Thanks for your answers!! ^_^

2007-03-01 14:29:20 · 5 answers · asked by bill 2 in Computers & Internet Programming & Design

Another thing, i want to know how to play th e music automatically when the program loads..

2007-03-01 14:47:48 · update #1

5 answers

My.Computer.Audio.Play(
"c:\path\song.ext", AudioPlayMode.Background)

For the animated gif, you would need to load it into a web browser control (comes standard with VB, just drop it in)

2007-03-01 15:19:11 · answer #1 · answered by Vegan 7 · 0 0

You can use one of the Windows Media Player controls to play music using VB

2007-03-01 15:16:01 · answer #2 · answered by shadowkat 5 · 0 0

there are ways to use programs like Windows Media player for music. Check out http://www.pscode.com for great sample codes. Since you didn't mention what version of VB, I can't be of any more help than that.

2007-03-01 15:24:28 · answer #3 · answered by Richard H 7 · 0 0

as long as the files are on the server the VB program can use it.

2007-03-01 14:32:47 · answer #4 · answered by sarolabelle 2 · 0 0

There is control in components dialog box export those in the tool box and use it. We can handle those controls as you need.

2007-03-01 15:31:38 · answer #5 · answered by sridhar b 2 · 0 0

fedest.com, questions and answers