Martin,
First things first, where is the button resued, either in windows
application or web application.
At windows application, you can instantiate a new window having the widows
webbrowser control and give the reference to what ever url that you want.
In web app, you could simply write a javascript function which will open a
new browser instance and navigate you to the given url. Search for
"window.open".
At the web, use the below like command with in your javascript
window.open("Sample.html",SampleWindow,
"height=100,width=100,status=yes,toolbar=nyes ,Target=_blank")
HTH
"Martin (Martin Lee)" <la*********@21cn.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,
I am new in C sharp.
I make a button, when users click the button, I want it to open a webpage
(for example www.yahoo.com )
How to do? What should the code be?
Thanks!
Martin