Program a MEDIA PLAYER with VISUAL BASIC 2008 (Beginners)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 :) code pour embarquer la vidéo : >>> http://www.youtube.com/embed/5C_HMYyGyK4 <<< |