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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -