views:

24

answers:

1

Hi, I've an html page index.html in my windows application folder. now i want to set as a url of webbrowser in form1. how can i do it? is there any syntax like server.mappath() in web application in windows?

ex:

Uri repuri = new Uri("index.html"); webBrowser1.Url = repuri;

how can i map it?

+1  A: 
Application.ExecutablePath

Returns the full path of your exe-file, including the filename itself. You could use that to bouild a path to your HMTL-file.

Charlie boy