Visual Studio 2010 uses the Windows Media Player control to play music videos

Source: Internet
Author: User
Tags visual studio 2010

1. New Windows Forms application

2. Left toolbar-Any space, right-click-Select item-Find "Windows Media Player Control" in the COM component, select, click OK


3. At this point, the control already appears in the toolbar and then drags the control to the WinForm.

4. Copy the MP3 or other videos that need to be played to the project's debug directory;

5. Set the URL property of the Windows Media Player control, or implement This.wmpMusic.URL = "ppn.3gp" by encoding; are available.

6. Run test ...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.