Click to See Complete Forum and Search --> : .net activex
fmardani
Feb 12th, 2003, 05:21 AM
I have created an activex control in vb 6
Can this be upgraded to .net?
The error message says that it can not be upgradd because the activex was written in vb6. Is there a way around this? or do I have to re-write the whole of the activex in vb.net?
Thanks
area91
Feb 12th, 2003, 06:47 AM
well..you might have 2..but i use vb 6 cont. all the time..
hellswraith
Feb 12th, 2003, 07:34 AM
If the active x control works good without any problems, there is no need to upgrade it to .Net. You can just use com interop. Right click on the toolbox, select Customize toolbox. Go to the COM tab, then browse for your activex control. The ide will create a wrapper around it that will allow your .Net app to use it.
If you need to change it though, you might want to think about rewriting the code. The upgrade wizard tries real hard, but just always comes up short. Make sure that when you upgrade it though, try to find the .Net way of doing things instead of using API's as much as possible.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.