can any body explain for me the way of using media player control in vb.net2003.


i want a video to start only when clicking on a certain button. i don't want it to start automatically when the form is loaded..

Recommended Answers

All 3 Replies

Something like this or this ?

thx..

but idon't want to create a media player , i want only the way of using the media player control ..

as i said above i want a video to start only when clicking on a certain button. i don't want it to start automatically when the form is loaded

Add the windows media player control to your form. Set the visible property to false so you can't see the control. In the button click add the following code.

Me.AxWindowsMediaPlayer1.URL = "C:\Documents and Settings\wayne1\My Documents\My Music\The Beatles\Abbey Road\03 Maxwell's Silver Hammer.wma"

Change the file name to one of yours.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.