Solved

VB6 ocx in C# prog

Posted on 2003-11-17
3
526 Views
Last Modified: 2008-02-26
I have a vb6 activex control(.ocx) that I need to use in a .NET app, but I am unable to add the control. (err - Converting the assembly to a .NET assembly failed. Error loading type library/dll. (I have already tried aximp, with the same results). No interop dll is available., Anyone have an idea how I might be able to pull this off? (I have no source code for the .ocx)

thanks in advance.
0
Comment
Question by:ocjared
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
smegghead earned 250 total points
ID: 9766719
If all else fails, you could wrap it up within another usercontrol in VB6, by re-exposing all the properties methods through the new control.

However, I would explore other avenues before resorting to this.

Smg.
0
 
LVL 1

Author Comment

by:ocjared
ID: 9773983
Any suggestions for other avenues?
0
 
LVL 10

Expert Comment

by:smegghead
ID: 9774638
Would you be able to send me the control ?? I could try it here.. is it completely stand-alone ? my email is on my profile.

Chrs
Smg.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# guarantee sql connection close 6 50
C# Desktop Application 3 54
Expression Evaluater 3 38
What is Microsoft.Exchange.WebServices.Data.ExchangeService in PowerShell? 4 33
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

837 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