本文整理汇总了C#中System.Windows.Forms.LinkClickedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# LinkClickedEventArgs类的具体用法?C# LinkClickedEventArgs怎么用?C# LinkClickedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LinkClickedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了LinkClickedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: detailTextBox_LinkClicked
private void detailTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch { }
}
示例2: txtRecord_LinkClicked
void txtRecord_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch
{
//MessageBox.Show("无法打开链接。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
示例3: ChatLog_LinkClicked
private void ChatLog_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
Process.Start(e.LinkText);
}
catch (Exception)
{
// ignored
}
}
示例4: RichTextBoxAbout1LinkClicked
private void RichTextBoxAbout1LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
Process.Start(e.LinkText);
}
catch
{
MessageBox.Show("Unable to start link: " + e.LinkText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
示例5: licenseText_LinkClicked
private void licenseText_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
MyDocProvider.Navigate(e.LinkText);
}
catch (Exception exc)
{
MessageBox.Show("Could not open link. " + exc.Message, ":-(", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
示例6: aboutText_LinkClicked
private void aboutText_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
示例7: richTextBox1_LinkClicked
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch (Exception ex)
{
(ParentForm as FormMain).ErrorReporting(ex, false);
}
}
示例8: richTextBox1_LinkClicked
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
//System.Diagnostics.Process.Start(e.LinkText);
//this.richTextBox1.AutoWordSelection = true;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
示例9: richTextBoxOutput_LinkClicked
private void richTextBoxOutput_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
var linkText = e.LinkText.Replace("%20", " ");
Process.Start(linkText);
}
catch (Exception)
{
}
}
示例10: rtbDisplay_LinkClicked
private void rtbDisplay_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
Process.Start(e.LinkText);
}
catch (Exception ex)
{
Eh.GlobalErrorHandler(ex);
}
}
示例11: chatBox_LinkClicked
private void chatBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
var browser = new Process()
{
StartInfo = new ProcessStartInfo(e.LinkText)
{
UseShellExecute = true
}
};
browser.Start();
messageText.Focus();
}
示例12: RevisionInfo_LinkClicked
void RevisionInfo_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = e.LinkText;
proc.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
示例13: richTextBox1_LinkClicked
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
Misc.OpenFileInWorkerThread(e.LinkText);
// FIXME uncomment this when the website has the "try now"
// section available. Also make btnSignup visible again in Designer.
//SetWizardButtons(WizardButtons.Next | WizardButtons.Back);
}
catch (Exception ex)
{
Base.HandleException(ex);
}
}
示例14: RevisionInfoLinkClicked
private static void RevisionInfoLinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
new Process
{
EnableRaisingEvents = false,
StartInfo = { FileName = e.LinkText }
}.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
示例15: console_textbox_LinkClicked
private void console_textbox_LinkClicked(object sender, LinkClickedEventArgs e)
{
mainWindow F = (mainWindow)FindForm();
string[] lines = e.LinkText.Split('#');
string name = lines[0];
lines = lines[1].Split(':');
string line = lines[lines.Length-1];
if (lines.Length == 3)
{
name = lines[0] + ":" + lines[1];
}
else
name = lines[0];
name = name.Replace('/', '\\');
F.link_sent(name, line);
}