Library tutorials & articles
Multimedia
- Introduction
- Multimedia Controls
- Playing sound files
- Showing/Saving Images
- Playing Animations
Playing sound files
If you want to play MDI or WAV files, click on one of those links. If you want to play CD's, you need to use the Multimedia control. To set up the Multimedia Control to play a CD all you need is to write one line of code, and change some of its properties. Set it's properties to the following:
|
Property |
Value |
| Device Type | CDAudio |
| Autodisable | True |
Then, insert the following line of code into the Form_Load() procedure:
MMControl1.Command = "Open"
Now just run your application. It's a simple as that!
Related articles
Related discussion
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
-
listbox scrollbar
by Dennijr (10 replies)
-
Can you describe Above simple VB6 code?
by pramodmca09 (0 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
VISUAL STUDIO USER
i am having the same situation but i got one step further because i can accurateley adjust the scroll to my track, you can do this by setting the tract time format to ms(milliseconds) then get the length of the track, then convert the length of the track to an integer, then set that as the spin max range, then get the scroll pos and format it into a String, then get the sliders position and seek that.
however the downfull of this is that you can only do this for one track, if find out how to do it to all the tracks please reply back
i found an easy way to display animated gif's to a form in vb http://mx.geocities.com/strikersdomain6/dxanimatedgif.zip
easy to use and has instructions
i dont know exactly if this will work, but with MMControl1.position you can get the position...
Microsoft Animation Control 6.0 (SP4)
Is there an animation control for vb.net? or an equivelant component? I have almost given up on how to view the filecopy.avi in vb.net!
Help? Thanks
Does VB6 handle Animated Gifs ? I am writing a program that requires certain buttons to change colour or flash
when certain events occur.I am using a timer now , it does do the job but sinice i am using realtime event changes, the timer does not pick up some changes quick enough and the buttons end up changing or flashing at the wrong times.I have added checks and flags to the timer to try and handle this but cannot get 100%. Is there any other way?
http://www.developerfusion.com/show/62/1/
...has all the information you may need to add a slider to the MediaPlayer. I cannot garentee that it will work like you want it to on all of it but if you have visual studio you may use the "Advanced API Text Viewer" under the "VisualStudio Tools" directory of the start menu. Any questions please just feel free to reply and I will get back to you as soon as I can!
(VISUAL STUDIO 6 user)
I'm currently writing a program to play .WAV files as I've just started learning VB. The MCI Control is powerful but what if I wanted to add a Slider Bar to control the positioning of the Audio File (Like MediaPlayer does)?
Regards
This thread is for discussions of Multimedia.