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. Web Development
  3. ASP.NET
  4. How to interact windows forms app to asp.net c# web

How to interact windows forms app to asp.net c# web

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwinformstutorial
2 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.
  • Z Offline
    Z Offline
    Zeyad Jalil
    wrote on last edited by
    #1

    Hi All, I have an ASP.Net Web Form Application and I have a button called "Open Cash Drawer" in the form, and I want when click the button call a windows form application on the client PC to open the cash drawer. I do some search on the Internet and the result is to use "Register URI Scheme" to interact web and windows application together . Please let me know how to do that, and give me any sample code if possible. Thanks Alot

    A 1 Reply Last reply
    0
    • Z Zeyad Jalil

      Hi All, I have an ASP.Net Web Form Application and I have a button called "Open Cash Drawer" in the form, and I want when click the button call a windows form application on the client PC to open the cash drawer. I do some search on the Internet and the result is to use "Register URI Scheme" to interact web and windows application together . Please let me know how to do that, and give me any sample code if possible. Thanks Alot

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      True, that is the only possible solution here. Also, apart from that, you also need to make sure that your desktop application is also available on the client device, installed and listening for that URL or URI, or the protocol — you can check how Torrent clients, Skype client etc work. They use the same methods to listen to a button click, and then the browser itself starts the default application for that URL (uTorrent for the magnet links, Skype for call links, your email client for mailto links etc). This article covers everything you need to do in order to register that URI in the registry, [Registering an Application to a URI Scheme (Windows)](https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx). Rest of the stuff is not at all complex, the only thing is to have the client install your desktop application, if they trust you, they will, if they do not then you need to earn some trust.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      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