Loading new HTML into Visual Basic web browser

735 views Asked by At

I have a web browser that on load of the application i have placed html into it

webBrowse.Document.Write(IO.File.ReadAllText("\\comp\shared\index.html"))

and I am trying to load a new html doc into it once the user selects a certain item from a listbox

webBrowse.Document.Write(IO.File.ReadAllText("\\comp\shared\userpage" + user))

Note user is the page of a certain user in the format of user[id_num].html

Do I need to do anything else? when the method is called once something is picked the web browser stays on the same page that was up when it loaded.

I am thinking that maybe I need to refresh the screen or redraw it like java I am not sure but I am not that experienced in VB so any help would be helpful.

1

There are 1 answers

0
jmurphy1267 On BEST ANSWER

Used Navigate to allow me to Navigate to the next page without using i/o functions, and changed it to also change input so the map would load.