Question Web Browser Auto open link

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
I have a web browser in my app and i have the code to search for a specific link in the document. how can i open that link with its default application without me clicking on it and hitting open? the link is a query link so i cant see the filename to even just do a download and open.
 
Use Process class, Process.Start method for example. The http protocol is registered with the default browser.

If you want the source you can use WebClient class and download the string from that url. It is the same source the browser requests initially when you go to that url, then it parses the content to see if more content needs to be downloaded, then it displays all the elements in browser window.
 
Back
Top