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. Activating a Vb app via a URL

Activating a Vb app via a URL

Scheduled Pinned Locked Moved Visual Basic
csharpbusinesstutorialquestion
4 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.
  • C Offline
    C Offline
    Clyde Davies
    wrote on last edited by
    #1

    I have a legacy business application written in VB 6.0. (I expect I will need to upgrade this to VB.NET at some point.). I need to activate this from a custom URL link on a web page in IE, passing parameters into it via the URL. This will bring up a form in the VB app from which I can hit a button and return to the IE window page, passing the return values again as a URL. Does anyone know how to accomplish this? I've looked at 'monikers', but I really don't understand how to use these and would appreciate some sample code from someone who has done this beforehand

    D 1 Reply Last reply
    0
    • C Clyde Davies

      I have a legacy business application written in VB 6.0. (I expect I will need to upgrade this to VB.NET at some point.). I need to activate this from a custom URL link on a web page in IE, passing parameters into it via the URL. This will bring up a form in the VB app from which I can hit a button and return to the IE window page, passing the return values again as a URL. Does anyone know how to accomplish this? I've looked at 'monikers', but I really don't understand how to use these and would appreciate some sample code from someone who has done this beforehand

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Let me get this straight: On a client machine with a web browser, go to a URL and have the server launch a VB6 Windows Forms App (not a web app), the server runs the app but the client sees the user interface and, pass parameters to the app and pass return code back to the client to some other app waiting there. RageInTheMachine9532

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Let me get this straight: On a client machine with a web browser, go to a URL and have the server launch a VB6 Windows Forms App (not a web app), the server runs the app but the client sees the user interface and, pass parameters to the app and pass return code back to the client to some other app waiting there. RageInTheMachine9532

        C Offline
        C Offline
        Clyde Davies
        wrote on last edited by
        #3

        Almost there: I expect that the browser, not the server, will launch the app in this case. I think it might have to be done via a URL moniker, like you get on the http://www.bitzi.com site. These will activate file sharing programs such as KaZaA and pass the download parameters into the program. My additional requirement is that the Windows Forms app can activate the browser instance (IE in this case) that created it and get it to navigate to a URL on completion of the process. Simple, eh? :-/

        D 1 Reply Last reply
        0
        • C Clyde Davies

          Almost there: I expect that the browser, not the server, will launch the app in this case. I think it might have to be done via a URL moniker, like you get on the http://www.bitzi.com site. These will activate file sharing programs such as KaZaA and pass the download parameters into the program. My additional requirement is that the Windows Forms app can activate the browser instance (IE in this case) that created it and get it to navigate to a URL on completion of the process. Simple, eh? :-/

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Monikers are used to tell a browser what application to launch based on the contents of the html page. For example, a PDF file moniker will tell the browser to launch AcrobatReader to render the content PDF content. You can setup links to launch various programs, like Kazaa, but Kazaa won't return anything back to your browser since it's not written to do so. Also, your windows app would have a difficult time determining which browser launched it, unless there was only one browser window open. Telling the existing browser to navigate to another URL would not be a trivial task. RageInTheMachine9532

          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