本文整理匯總了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);
}