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

php - Array to string conversion smarty template -

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

vb.net - Font adding using PDFsharp -