I’m using a Web Browser Control in a C# Winform Application. I’m loading local files to the WebBrowser Control. I want to pull the information from the file that is currently loaded in the WebBrowser control to a FileInfo Method.
I’ve tried
FileInfo fi = new FileInfo(webBrowser1.Url.ToString());
Throws the error:
URI formats are not supported.
Any thoughts would be appreciated.
Thanks in advance.
Try the
LocalPathproperty of theUriobject stored in theUrlproperty: