Edit the Auto-generated Reference to a COM Control

Posted on 2004-11-17
Last Modified: 2012-06-21
I am using the windows media player control in my app, whick created a reference to WMPlib.  When I place the control on the form a reference called axWMPlib.  However, the axWMPlib dll that is generated by vs does not contain all of the methods that are available from the WMPlib.   For example:

 Public Overridable Property currentPositionTimecode() As String
     Member of: WMPLib.IWMPControls3
is not available to my control.

How can I edit the axWMPlib to include additional methods, properties that exist within the WMPlib.?

Question by:vbal
    LVL 96

    Expert Comment

    by:Bob Learned
    If you install the Windows Media Player SDK, you get the Primary Interoperability Assemblies that are generated by Micro$oft:

    Using Windows Media Player with .NET


    Author Comment


    I do have the sdk installed (9.0).  Maybe I have added the wrong .dll to my tool box.   I have done the following: Add/Remove items in tool box--->com components tab-->selected the windows media player from the list, which is:


    I then placed the control on the form.

    Do I need to take any steps in addition to what I have done.

    LVL 96

    Accepted Solution

    There should be a file wmppia.dll that is the Primary Interoperability Assembly from the SDK.  I am not sure of its location, because I don't have it installed at home.


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now