How To Embed Windows Media Player In Windows Form Using VB.Net

How To Embed Windows Media Player In Windows Form Using VB.Net

1. Go to “Tool Box” pane  then right click
2. Select “Choose Items…”
3. Click “COM Components” tab
4. Select/Check the “Windows Media Player” component
5. Click OK
6. Drag the component “Windows Media Player” from Tool Box pane to Form1
7. In the “Form1_Load” event add this code: AxWindowsMediaPlayer1.URL = “C:UsersPublicVideosSample VideosWildlife.wmv”
8. Press F5

Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>