I need to open the html file from the root directory of the program and go to the specified anchor. I can fully open the file with a simple
System.Diagnostics.Process.Start ("site.html")
but as soon as I try to add the anchor to the end, it stops finding the file.
I was able to anchor there and still launch it with
string Anchor
Anchor = "file: ///" + Environment.CurrentDirectory.ToString (). Replace ("\", "/") + "/site.html#Anchor"; System.Diagnostics.Process.Start (Anchor);
However, as soon as the browser launches, it drops to the anchor. Any suggestions?
c #
Holman716
source share