Pages

Data Entry Services: Offshore Online Data Entry Services in India.
"Data Entry Services delivers cost effective services like Online Data Entry, Offline Data Entry, Insurance Claim Entry Services in India."

About Me

I am a software Developer....If you need any assistance please mail me...mail id : sivodayablogs@gmail.com

Followers

Search This Blog

World of Development

Thursday, 1 December 2011

Mediaplayer in VB.NET, VB.NET Mediaplayer, Mediaplayer Programming in VB.NET

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.

  1. 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....................



1 comment:

My Sites