locked
Media Player Control? RRS feed

  • Question

  • Ni hao!

    Where do I get the Windows Media Player Control?
    Would I be able to make multiple playlists for different things?

    I'm asking this because I'm doing a media player program for my VB class, and need to somehow get the control.


    From,

    Kristi

    Tuesday, October 28, 2008 10:44 PM

Answers

  • Hi,
    you can find the Media Player ActiveX control by choosing the Project|Add Reference command in Visual Studio, then selecting the COM tab and finally the Windows Media Player component (wmp.dll file).

    Just remember that WMP ActiveX is copyrighted by Microsoft, so you should pay particular attention to the Windows Media Player EULA about using and redistributing components belonging to the application.

    Hope this helps.
    Alessandro Del Sole - Microsoft MVP http://community.visual-basic.it/Alessandro
    • Proposed as answer by Arjun Paudel Wednesday, October 29, 2008 4:54 AM
    • Marked as answer by Sora Marie Thursday, October 30, 2008 8:09 PM
    Tuesday, October 28, 2008 11:47 PM
  • Alessandro's answer certainly makes it available for use in your project, but doesn't add it to the toolbox.

    You can add it there (the Toolbox) by Right-clicking and select Choose Items... Then, select the COM Components tab. Browse down for the Windows Media Player object.

    It should be available, now to drag and drop onto your form/control.

    Stephen J Whiteley
    • Marked as answer by Sora Marie Thursday, October 30, 2008 8:09 PM
    Thursday, October 30, 2008 2:09 PM
    Moderator

All replies

  • Hi,
    you can find the Media Player ActiveX control by choosing the Project|Add Reference command in Visual Studio, then selecting the COM tab and finally the Windows Media Player component (wmp.dll file).

    Just remember that WMP ActiveX is copyrighted by Microsoft, so you should pay particular attention to the Windows Media Player EULA about using and redistributing components belonging to the application.

    Hope this helps.
    Alessandro Del Sole - Microsoft MVP http://community.visual-basic.it/Alessandro
    • Proposed as answer by Arjun Paudel Wednesday, October 29, 2008 4:54 AM
    • Marked as answer by Sora Marie Thursday, October 30, 2008 8:09 PM
    Tuesday, October 28, 2008 11:47 PM
  • Alright, I did that, but I can't find it. Would it be in the Toolbox? I've never done this before.

    From,

    Kristi

    Wednesday, October 29, 2008 7:20 PM
  • Alessandro's answer certainly makes it available for use in your project, but doesn't add it to the toolbox.

    You can add it there (the Toolbox) by Right-clicking and select Choose Items... Then, select the COM Components tab. Browse down for the Windows Media Player object.

    It should be available, now to drag and drop onto your form/control.

    Stephen J Whiteley
    • Marked as answer by Sora Marie Thursday, October 30, 2008 8:09 PM
    Thursday, October 30, 2008 2:09 PM
    Moderator
  • Okay, as soon as I have my flash drive with me (as in not left at school by accident) I'll try that out.

    Thank you!


    From,
    Kristi
    Thursday, October 30, 2008 8:08 PM
  • Hmm...does dragging really work? Last time, I checked it and pressed OK, so it would appear every time I started vb.


    ~Pat
    Thursday, October 30, 2008 8:47 PM