VB6 vs VB.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Uri Dimant

    #1

    VB6 vs VB.NET

    Hello
    Does anybody know how to call VB6 Form from VB.NET (VS2005) Application ?

    Thanks


  • ag

    #2
    Re: VB6 vs VB.NET

    You can achieve this on a different way.

    Just make an exe of the vb6 form then call it from your vb.net app by

    Shell ( "Form1.exe" )

    I forgot the syntax exactly, google "shell" for more info.

    Comment

    • Uri Dimant

      #3
      Re: VB6 vs VB.NET

      Thanks

      "ag" <name.new@gmail .com> wrote in message
      news:1150974714 .392156.41120@r 2g2000cwb.googl egroups.com...[color=blue]
      > You can achieve this on a different way.
      >
      > Just make an exe of the vb6 form then call it from your vb.net app by
      >
      > Shell ( "Form1.exe" )
      >
      > I forgot the syntax exactly, google "shell" for more info.
      >[/color]


      Comment

      • Dick Grier

        #4
        Re: VB6 vs VB.NET

        Better, I think, to create an ActiveX dll or ActiveX EXE for your VB6 code.
        Then, add this Ax component as a reference in your .NET program. You then
        can call it directly from you code, just like any other object.

        Dick

        --
        Richard Grier, MVP
        Hard & Software
        Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
        Edition,
        ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
        2006.
        See www.hardandsoftware.net for details and contact information.


        Comment

        Working...