Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added LinkClicked handler for NewsFeed and about tab

  • Loading branch information...
commit 6b9ea33cbf268ecc4f5ada4e8633bf5f5ac7cc29 1 parent 195a137
@seuffert authored
Showing with 12 additions and 0 deletions.
  1. +2 −0  XBSlink/Form1.Designer.cs
  2. +10 −0 XBSlink/Form1.cs
View
2  XBSlink/Form1.Designer.cs
@@ -438,6 +438,7 @@ private void InitializeComponent()
this.richTextBox_newsFeed.Size = new System.Drawing.Size(360, 490);
this.richTextBox_newsFeed.TabIndex = 0;
this.richTextBox_newsFeed.Text = "";
+ this.richTextBox_newsFeed.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBox_newsFeed_LinkClicked);
//
// tabPage_info
//
@@ -1521,6 +1522,7 @@ private void InitializeComponent()
this.richTextBox_about.Size = new System.Drawing.Size(345, 507);
this.richTextBox_about.TabIndex = 0;
this.richTextBox_about.Text = "";
+ this.richTextBox_about.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBox_about_LinkClicked);
//
// timer_messages
//
View
10 XBSlink/Form1.cs
@@ -1767,5 +1767,15 @@ private void loadNewsFeed()
richTextBox_newsFeed.AppendText(Environment.NewLine);
}
}
+
+ private void richTextBox_newsFeed_LinkClicked(object sender, LinkClickedEventArgs e)
+ {
+ System.Diagnostics.Process.Start(e.LinkText);
+ }
+
+ private void richTextBox_about_LinkClicked(object sender, LinkClickedEventArgs e)
+ {
+ System.Diagnostics.Process.Start(e.LinkText);
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.