c# - Setting the Navigation String for webbrowser from another form -


i want set navigation of webbrowser in usercontrol form,i defined function in usercontrol

public string loadhtml(string htmlfilepath) {     return htmlfilepath; } private void startpage() {     onthisload();     webbrowser1.navigate(loadhtml("")); } 

in main form

htmlloadwebbrowser1.loadhtml(@"d:\h2.htm");  

am missing something?

i don't think loadhtml function doing want to

public void loadhtml(string htmlfilepath) {     webbrowser1.navigate(htmlfilepath); } 

if so, other function break

private void startpage() {     onthisload();     webbrowser1.navigate(""); } 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -