Sign in to follow this  
tjoink

[.net] ocx usage

Recommended Posts

tjoink    134
hi, being quite new to .net I have the following question; I want to use an ocx control (that was used in vb), in my .net app. I've found out that I need to create a wrapper, wich can be done with the program AxImp. This then generates 2 dll's, and that's when I get lost.. How to incoorporate them in my program? thanx for replying!

Share this post


Link to post
Share on other sites
ernow    732
Right-click on the toolbox and select Add/Remove items.

The browse to the managed dll (Ax<prog-id>.dll) and select it.

A new control should be have been added now to your toolbox.

Cheers

Share this post


Link to post
Share on other sites
ernow    732
It might be possible that the specific ActiveX can not be 'transformed' to .NET... Did AxImp give any messages?

Share this post


Link to post
Share on other sites
ernow    732
Well then I suggest that you name the ActiveX control (if it is public) and hope someone knows it. If it is a private ActiveX you could opt for migration to/rewriting in .NET.

Cheers

Share this post


Link to post
Share on other sites
JesseT    402
I don't mean to sound condescending, but have you considered ditching the OCX control? ActiveX and OCX are like obsolete technologies, yo.

Can you not reimplement it in pure .NET?

Share this post


Link to post
Share on other sites
tjoink    134
Well, you tell me..
It's part of the tomtom navigator sdk, and all they provide is the ocx. And like I said, just don't know how to get there..

Any further help is appreciated!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this