Link to home
Start Free TrialLog in
Avatar of vbal
vbal

asked on

Edit the Auto-generated Reference to a COM Control

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.?




regards,
vbal
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

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
http://www.awprofessional.com/articles/article.asp?p=101752

Bob
Avatar of vbal
vbal

ASKER

Bob,

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:

 c:\WINNT\system32\wmp.dll

I then placed the control on the form.

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

Regards,
vbal
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial