Saturday, July 28, 2012

How to open a webpage when we click a button?

To open a webpage in your system’s default web browser, when you click a button in your form, write the following code in your button click event:


  1. Dim sURL as String = "http://www.dotnetblogger.info"  
  2. Process.Start(sURL) 
 
 

The above piece of code will lauch the web page as specified with the default browser.

No comments:

Post a Comment