Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Program a MEDIA PLAYER with VISUAL BASIC 2008 (Beginners)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
77,435
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 7, 2008

GO HERE for more Visual Basic Tutorials, Tips and DOWNLOADS!

http://www.vbtutorials.weebly.com

Screen capture showing you how to prgram your very own simple media player using visual basic 2008 or 2005. Suitable for beginners!

Details may be hard to pick out but if you can become familiar with the visual basic 2008 environment then you should be able to know what is happening or just do it the easy way and look at the guide i have given below!

Happy programming!

After you have added the "windows media player", "open file dialog" and "command button" to the form, double click on the command button to open the "code" window. Put in this code:
OpenFileDialog1.ShowDialog()
AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName

Go back to the design window and select "OpenFileDialog1" at the bottom. Go to its properties window and go to "filter". Type in " All Files(*.*)|*.*| " (without quotation marks.) You can customise the filters to what you want.

Run your program and everything should work fine :)

Link to this comment:

Share to:
see all

All Comments (216)

Sign In or Sign Up now to post a comment!
  • OK c'est bon

  • Tnx

  • Thanks It Works!!!!!!!!!!!!!!!!!!!!!!!!!­!!!!

  • how to do it without open button

  • @stefan041997 When you copy and paste codes they don't work because you have to type it in your self

  • das ist mein video da zeig ich wie ihr noch einen picture viewer einbauen könnt damit es nicht so langweilig ist. hier ist der link youtube(.)com/watch?v=LQMDJ1eu­VXc

  • Its ''All Files (*.*)|*.*"

  • When i paste All Files(*.*)|*.*| in the filter it says PROPERTY VALUE IS NOT VALID

  • WTF!? I have not a media player in the "All" section

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more