ChrisW's answer will work, but there is another way if you just rely on hyperlinks.
In Comicster , I have links in my WebBrowser control as follows:
<a href="action:FileNew">New Collection</a>
And then in the WebBrowser Navigating event, I have some code to check if the user tried to go to the โaction:โ and intercept it:
private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e) { if (e.Url.Scheme == "action") { e.Cancel = true; string actionName = e.Url.LocalPath;
With a bit of code, you can even parse the URL parameters and โpass themโ into the action of your host application so that I can do things like:
<a href="action:EditIssue?ID=1">Edit this issue</a>
... that will open the properties dialog for the problem with identifier 1.
source share