title: How to get internet explorer URL in ActiveX Control
body: <p>For some reasons from my client, I have to build an ActiveX Control for IE browser. I know the technology is old and not safe, so I decided to implement a simple security scheme where I determine the url in which the control is hosted. If the url comes from our domain, I enabled its functionality. Now how to get based ie URL in ActiveX? I have used C#.
  I want to get url of web like the post <a href="https://support.microsoft.com/en-us/help/181678/how-to-retrieve-the-url-of-a-web-page-from-an-activex-control" rel="nofollow noreferrer">here</a> but for C#.
  Many thanks!</p>