c# - How can I change a WebBrowser URL with a button? -


like, on button press changes webbrowser url google.com youtube.com

i tried this, didn't work:

private void button1_click(object sender, eventargs e) {     newsfeedbox.url = ("youtube.com"); } 

try this:

newsfeedbox.navigate("http://youtube.com"); 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -