ocx wrapper without having to register it

Dear Experts

I have an .ocx file which I used to use in vb6.  To use it, I had to register that ocx on all users computers which was a pain.  With .net, is it possible to some how wrap the ocx in .net and create a standard .net application without having to register the ocx file on all users computers?

I am looking into aximp but it does not seem to be the answer.

Please help
LVL 1
narmi2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
.NET creates runtime callable wrappers for COM libraries, but it doesn't remove the need to register the COM library on the machine, and there is no way around that requirement, that I know of.

Bob
0
narmi2Author Commented:
As a work around, is it possible to get the .net program which contains the ocx to register the ocx on computers where the ocx is not registered?
0
Bob LearnedCommented:
You should be able to call regsrv32.exe:

Process.Start("regsrv32.exe", "c:\Windows\Ani32.ocx")

Bob
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
narmi2Author Commented:
>> .NET creates runtime callable wrappers for COM libraries, but it doesn't remove the need to register the COM library on the machine, and there is no way around that requirement, that I know of.

Would this work?

http://codebetter.com/blogs/paul.laudeman/archive/category/1147.aspx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.