125 Posts in 50 Topics - by 498 Members - Latest Member: mjonathonhutchinsong

AuthorTopic: VB - Video Player  (Read 119 times)

Offline Empty Gaming

  • Leecher
  • *
  • Posts: 3
  • Rep: +0/-0
    • View Profile
    • Email
VB - Video Player
« on: July 29, 2010, 11:41:21 PM »
This is a quick little tutorial on how to make a Video Player in VB 2008 -2010. Im sure you can do this in VB6 but you will have to change the code a lot.

Whats needed:
1 Forum
1 Media Player
1 Menu Strip
1 Open File Dialoge

How to get media Player:
1) Open your tool box
2) Right click, and click "Choose Items..."
3) Goto Com Components and check "Windows Media Player"

What to do:
1) When you Have your menu strip name the drop down "File", Then Make 2 items "Open" and "Close"
2) Double Click Open, and here is the code...
Code:
Try
OpenFileDialog1.ShowDialog()
AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
Catch ex As Exception
'Do Nothing
End Try
3) Double Click Close, and here is the code...
Code:
me.close
Now your done, You can play your Favorite Video or song!