You can use the
WebBrowser
control and have it navigate to link a link with
_blank target frame. This will open a new browser window.
Like this for example;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication4 {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
var browser = new WebBrowser();
browser.Navigate("http://www.google.com/", "_blank", Encoding.Default.GetBytes(""), "");
}
}
}
In this case when the link on the Form is clicked a new
WebBrowser
control is created, but it's never displayed. Instead it's used only for the
Navigate
method that will, in conjunction with the target frame
_blank, to open the default browser to the specified URL.
Hope this helps,
Fredrik Bornander