Mediaplayer Programming in VB.NET
Simple to program a mediaplayer in VB.NET. We can play Music, Videos all in this MediaPlayer. Below Steps shows the way to program a VB.NET MediaPlayer.
4. Then write the code given below.....
If you any suggestions against this topic just mail me....................
Simple to program a mediaplayer in VB.NET. We can play Music, Videos all in this MediaPlayer. Below Steps shows the way to program a VB.NET MediaPlayer.
- Add a media player control from tool box in Visual Studio.
Right click on toolbox in visual studio and select 'Choose Item' in menu.
2. From Choose ToolBox Item Frame select COM Components Tab and select windows media player from the list given below in that frame. check the windows media player components and click OK.
3. Drag the Windows Media Player Control to the frame or form. and dock into FILL in the Dock property of Windows Media Player Control.
4. Then write the code given below.....
Imports System.Windows.Forms Namespace mymediaplayer Public Partial Class Form1 Inherits Form Public Sub New() InitializeComponent() End Sub
//Create a button name Browse.....
//add a open file dialog from toolbox into the frame....
Private Sub btnBrowse_Click(sender As Object, e As EventArgs)
openFileDialog1.Filter = "mp3,wav,mp4,mov,wmv,mpg|*.mp3;*.wav;
*.mp4;*.mov;*.wmv;*.mpg|all files|*.*" If openFileDialog1.ShowDialog() = DialogResult.OK Then axWindowsMediaPlayer1.URL = openFileDialog1.FileName End If End Sub End Class End Namespace
If you any suggestions against this topic just mail me....................
Very Useful Information very nice Keep posting Web Design Training
ReplyDelete