How to Use the Windows Media Player Control in VB.NET

Written by jim campbell
  • Share
  • Tweet
  • Share
  • Email

The Windows VB.NET language includes a Windows Media Player control that lets you add a movie or music to a Web page. The music or movie streams to the user's Web browser. You must add the control to the Visual Studio VB.NET toolbox, drag and drop the control to a form and specify the file you want to stream on the Web page.

Skill level:


  1. 1

    Click the Windows "Start" button and select "All Programs." Click "Microsoft .NET Framework" and click "Visual Studio" to open the software.

  2. 2

    Right-click the toolbox panel in the left side of the window. Click "Choose Items" to open a new window.

  3. 3

    Click the "COM Components" tab. In the list of toolbox items, check the box labelled "Windows Media Player." Click "OK." Notice the Media Player icon displays in the list of controls in the toolbox.

  4. 4

    Drag and drop the control to a Web form. Visual Studio automatically sizes and draws the control on the form. Click the control to activate it and display the "Properties" window.

  5. 5

    Click the "Browse" button in the properties window and select the video or sound file you want to play on the page. Click "Save" to save the changes.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.