'________________________________________________________________________________________ ' W I N D O W S M E D I A D E M O ' Created 10/6/06 ' Ron Kessler '________________________________________________________________________________________ 'This program uses the Window Media Player Control to display movies & play audio. 'I added the control to the toolbox then placed it on the form. I set the FullScreen property =True 'I use a Windows Open dialog control then customize it a bit. This program doesn't repsond to changing 'it's size...when it launches, it goes to full screen. But if you change its size, you can't get it back to FS. 'This is just to show you what is possible! Public Class frmMain Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click 'Present the user with a file open dialog box. openFileDialog1.Filter = "Windows Media Audio (*.wma)|*.wma|Windows Media Video (*.wmv)|*.wmv| All Files (*.*) |*.*" openFileDialog1.RestoreDirectory = True If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then 'Open the selected file in the Player. AxWindowsMediaPlayer1.URL = openFileDialog1.FileName End If End Sub Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click Me.Close() End Sub End Class