Justin
Justin

Reputation: 365

Opening a url in a specific web browser when clicked - VB.net

I'm trying to figure out a way to have a specific web browser open (Internet Explorer for example) when a URL is clicked using VB.net

As I have it now, my code creates and sends out an email that displays a title and a hyperlink for the user to click on. Right now, the hyperlink opens the default browser, but I want to make it always open Internet Explorer.

enter image description here

The code below is what I have for displaying the Hyperlink. It displays "View Document" and the prints the hyperlink underneath. The hyperlink in this case is stored in my LinkLabel since its already part of the application somewhere else

What do I need to add to the code so that it defaults to Internet Explorer when it is clicked? enter image description here

I have come across suggestion of using the full file path to Internet Explorer on the C: Would that work?

Upvotes: 1

Views: 963

Answers (1)

Xaqron
Xaqron

Reputation: 30877

<a href=microsoft-edge:http://example.com>my link</a>

Update:

... & "<a href=microsoft-edge:" & LinkLabRequests.text & ">my link</a>" + ...

Upvotes: 1

Related Questions