Search code examples
c#windowsurl-schemetel

How to receive phone number from web link with tel: scheme


In my Windows`.NET Application, I need to receive a number from web browser when a button been clicked on our web page. We investigate and find out if I put this element on our html web page:

<a href="tel:0218980">0218980</a>

. . ,It will opens an arbitrary application. So we will select our .NET Application in this point, and the number would be received by it. What should I implement in C# to accomplish this?
Thanks in advance


Solution

  • Yo need to make a handler that consumes command line arguments and to register it via Windows Registry.

    (caller.exe there is a placement for your app)