Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Open VB.Net form from vb6

Open VB.Net form from vb6

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiosysadmintutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QPun
    wrote on last edited by
    #1

    Hai all, i wonder if anyone know how to use ShellExecute command in VB6 to open another form which is made with VB.Net 2005 I already find out how to open VS.Net Webpage using this: Private Sub Command1_Click() Dim dUrl As String dUrl = "http://server/apps1/Pages/Report.aspx?ItemPath=2" ShellExecute hWnd, "open", dUrl, NILL, NILL, Empty End Sub but, how to do similar task to open VB.Net form? Would someone give me a clue please? Thanx 1st.

    C 1 Reply Last reply
    0
    • Q QPun

      Hai all, i wonder if anyone know how to use ShellExecute command in VB6 to open another form which is made with VB.Net 2005 I already find out how to open VS.Net Webpage using this: Private Sub Command1_Click() Dim dUrl As String dUrl = "http://server/apps1/Pages/Report.aspx?ItemPath=2" ShellExecute hWnd, "open", dUrl, NILL, NILL, Empty End Sub but, how to do similar task to open VB.Net form? Would someone give me a clue please? Thanx 1st.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Just pass the path to the app as your argument.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      Q 1 Reply Last reply
      0
      • C Christian Graus

        Just pass the path to the app as your argument.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        Q Offline
        Q Offline
        QPun
        wrote on last edited by
        #3

        Which path? I mean, when we install the VB.Net application, we can't determine where the form path is, right? Actually what I try to do is to call a report form in VB.Net that using SQL Report Service from a VB application(call it ReportForm)..so let's say when user click button [REPORT], the ReportForm will show up...

        C 1 Reply Last reply
        0
        • Q QPun

          Which path? I mean, when we install the VB.Net application, we can't determine where the form path is, right? Actually what I try to do is to call a report form in VB.Net that using SQL Report Service from a VB application(call it ReportForm)..so let's say when user click button [REPORT], the ReportForm will show up...

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          QPun wrote:

          I mean, when we install the VB.Net application, we can't determine where the form path is, right?

          The form path ? What do you mean ? The only path is the path to the exe, you know where that is, right ? If you have an app with many forms, there's no way to use a specific form from VB6. All you can do is run the program.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          Q 1 Reply Last reply
          0
          • C Christian Graus

            QPun wrote:

            I mean, when we install the VB.Net application, we can't determine where the form path is, right?

            The form path ? What do you mean ? The only path is the path to the exe, you know where that is, right ? If you have an app with many forms, there's no way to use a specific form from VB6. All you can do is run the program.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            Q Offline
            Q Offline
            QPun
            wrote on last edited by
            #5

            Right, i know the directory of the .exe but I just wonder if there is someway to open specific form from VB6. Ok, thanx a lot for your help Christian..since u're the only person who response my thread :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups