Results 1 to 3 of 3

Thread: .net activex

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    .net activex

    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

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    well..you might have 2..but i use vb 6 cont. all the time..

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width