Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         private void Form1_Load(object sender, EventArgs e)
  2.         {
  3.             linkLabel2.Click +=new EventHandler(delegate {
  4.                 System.Diagnostics.Process.Start(@"http://hanssens.com");
  5.                 }
  6.             );
  7.  
  8.             linkLabel2.Click += new EventHandler(linkLabel2_Click);
  9.  
  10.  
  11.             linkLabel3.Click += delegate(object o, EventArgs args) {
  12.                 System.Diagnostics.Process.Start(@"http://hanssens.com");
  13.             };
  14.  
  15.             linkLabel4.NavigateUrl(new Uri(@"http://hanssens.com"));
  16.         }
  17.  
  18.         void linkLabel2_Click(object sender, EventArgs e)
  19.         {
  20.             throw new NotImplementedException();
  21.         }
  22.  
  23.         private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  24.         {
  25.             System.Diagnostics.Process.Start(@"http://hanssens.com");
  26.         }