Edit the Auto-generated Reference to a COM Control

Posted on 2004-11-17
Medium Priority
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
  • 2
LVL 96

Expert Comment

by:Bob Learned
ID: 12608854
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

ID: 12609793

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

Bob Learned earned 1000 total points
ID: 12611312
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

807 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