Library tutorials & articles
Multimedia
- Introduction
- Multimedia Controls
- Playing sound files
- Showing/Saving Images
- Playing Animations
Multimedia Controls
There is more than one way we can use these different forms of media. One way is to use ActiveX controls to control them. There is one main control in VB which does this, called the (you guessed it!) Multimedia Control. Here is a list of all the multimedia controls, and what they can do:
| Name | Belongs to | Description |
| Multimedia Control | Microsoft Multimedia Control | Plays CD's and audio files |
| Image Control | Standard Toolbox | Displays a specified image |
| Picture Box | Standard Toolbox | Allows you to resize an image etc. More advanced than Image Control |
| Animation Control | Microsoft Common Controls-2 Version 5.0/6.0 | Plays animations (*.avi) |
You will probably find that some of these controls are not on your standard components toolbar. To add it, select the Project menu, and click Components. This is located near the bottom of the menu. Scroll down the list of available components, and check the box next to the item in the Belongs To column. For example, if you want to use the Animation Control, check the box next to Microsoft Common Controls. Then click OK. You will now see a new icon in your toolbox.
Related articles
Related discussion
-
Run-time error '91'
by converter2009 (1 replies)
-
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)
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.