Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Create Media Player in VB


  • This topic explains how to create Media Player in VB programming.
  • Using this Media Player, you can play audio and video files.
  • Tools needed: Button1 (BtnBrowse), OpenFileDialog1 (OpenFileDialog1)

Steps to add Media Player Component to your VB applicationCreate Media Player in VB

  • Step 1: Select Tool Box, and right click anywhere on the tool box  and then select Choose option from the popup menu

Create Media Player in VB – Add Media Player Step 1

  • Step 2: Select COM Components from the opened frame and choose Windows Media Player from the list and Click OK to go back.

Create Media Player in VB – Add Media Player Step 2

  • Step 3: Drag or Select Windows Media Player tool from the toolbox to your VB application.

Create Media Player in VB – Media Player

System.Windows.Forms NamespaceCreate Media Player in VB

  • The System.Windows.Forms namespace contains classes for creating Windows-based applications.
  •  It has full advantage of the rich user interface features available in the Microsoft Windows operating system.

IComponentConnector.InitializeComponent MethodCreate Media Player in VB


  • Help to load the compiled page of a component.
  • Syntax

FileDialog ClassCreate Media Player in VB

  • FileDialog Class displays a dialog box from which the user can select a file.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

  • Syntax for FileDialog Class

FileDialog.Filter PropertyCreate Media Player in VB

  • Gets or sets the current file name filter string, which determines the choices that appear in the “Save as file type” or “Files of type” box in the dialog box.
  • Syntax for FileDialog.Filter

Create Media Player in VBComplete Code

Create Media Player in VB

If you have any suggestions, please contact us…

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">