本文整理汇总了C#中System.Windows.Forms.LinkClickedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# LinkClickedEventArgs类的具体用法?C# LinkClickedEventArgs怎么用?C# LinkClickedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LinkClickedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了LinkClickedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: detailTextBox_LinkClicked
private void detailTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch { }
}
开发者ID:karno,项目名称:Typict,代码行数:8,代码来源:Version.cs
示例2: txtRecord_LinkClicked
void txtRecord_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch
{
//MessageBox.Show("无法打开链接。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
开发者ID:iraychen,项目名称:ourmsg,代码行数:11,代码来源:FormNotice.cs
示例3: ChatLog_LinkClicked
private void ChatLog_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
Process.Start(e.LinkText);
}
catch (Exception)
{
// ignored
}
}
开发者ID:IceYGO,项目名称:DevProLauncher,代码行数:11,代码来源:ChatWindow.cs
示例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);
}
}
开发者ID:ItsJustSean,项目名称:subtitleedit,代码行数:11,代码来源:About.cs
示例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);
}
}
开发者ID:J-F-B-M,项目名称:BrainSimulator,代码行数:11,代码来源:LicensesForm.cs
示例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);
}
}
开发者ID:ousnius,项目名称:Material-Editor,代码行数:11,代码来源:AboutDialog.cs
示例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);
}
}
开发者ID:GrandPhoenix,项目名称:KBG-Minecraft-Launcher,代码行数:11,代码来源:FormNews.cs
示例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);
}
}
开发者ID:usbr,项目名称:Pisces,代码行数:12,代码来源:LoggerView.cs
示例9: richTextBoxOutput_LinkClicked
private void richTextBoxOutput_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
var linkText = e.LinkText.Replace("%20", " ");
Process.Start(linkText);
}
catch (Exception)
{
}
}
开发者ID:CarbineCoder,项目名称:ObjectExporter,代码行数:12,代码来源:FilesCreatedDialog.cs
示例10: rtbDisplay_LinkClicked
private void rtbDisplay_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
Process.Start(e.LinkText);
}
catch (Exception ex)
{
Eh.GlobalErrorHandler(ex);
}
}
开发者ID:iasanders,项目名称:sushi,代码行数:12,代码来源:ActionRestore.cs
示例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();
}
开发者ID:jvstech,项目名称:SmallChat,代码行数:13,代码来源:mainForm.cs
示例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);
}
}
开发者ID:bszafko,项目名称:gitextensions,代码行数:15,代码来源:CommitInfo.cs
示例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);
}
}
开发者ID:tmbx,项目名称:kwm,代码行数:15,代码来源:ConfigKPPCreateAccount.cs
示例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);
}
}
开发者ID:bleis-tift,项目名称:gitextensions,代码行数:15,代码来源:CommitInfo.cs
示例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);
}
开发者ID:Miniature,项目名称:DreamEdit,代码行数:16,代码来源:Console.cs
示例16: programInfoRichTextBox_LinkClicked
/// <summary>
/// プログラム情報のRichTextBoxでのLinkClickedイベントに対するイベントハンドラです。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void programInfoRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
//
// ブラウザを起動します。
//
try
{
System.Diagnostics.Process.Start(e.LinkText);
}
catch (Exception ex)
{
MessageBox.Show(
"ブラウザの起動に失敗しました。" + Environment.NewLine
+ "(" + ex.GetType().Name + ":" + ex.Message + ")", "ブラウザを起動できません",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
开发者ID:noraviewer,项目名称:PoderosaTerminalControl,代码行数:22,代码来源:InfoDialog.cs
示例17: richTextBox1_LinkClicked
/// <summary>
/// User has clicked on a link
/// </summary>
/// <param name="sender">richTextBox1</param>
/// <param name="e">event args</param>
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
//
// extracting URL from event and navigate using windows default web browser
//
string target = e.LinkText as string;
try
{
if (null != target)
{
System.Diagnostics.Process.Start(target);
}
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}
开发者ID:EugeneMac,项目名称:GITHUB,代码行数:23,代码来源:frmEditWindow.cs
示例18: rtb_Information_LinkClicked
/// <summary>
/// Rich textbox link clicked.
/// </summary>
private void rtb_Information_LinkClicked(object sender, LinkClickedEventArgs e)
{
// Links.
if (e.LinkText == "http://p.yusukekamiyamane.com/")
System.Diagnostics.Process.Start("http://p.yusukekamiyamane.com/");
if (e.LinkText == "www.yoyogames.com/make")
System.Diagnostics.Process.Start("www.yoyogames.com/make");
if (e.LinkText == "www.ismavatar.com")
System.Diagnostics.Process.Start("www.ismavatar.com");
if (e.LinkText == "www.sharpziplib.com")
System.Diagnostics.Process.Start("www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx");
if (e.LinkText == "www.binaryphoenix.com")
System.Diagnostics.Process.Start("www.binaryphoenix.com");
}
开发者ID:EIREXE,项目名称:shootfy,代码行数:21,代码来源:AboutForm.cs
示例19: typeInfoRichTextBox_LinkClicked
private void typeInfoRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
try
{
string[] linkInfo = e.LinkText.Split(new char[] { '#' });
switch (linkInfo.Length)
{
case 1:
ComTypeManager.Instance.LookupAndSelect(linkInfo[0]);
break;
case 2:
ComTypeManager.Instance.LookupAndSelect(linkInfo[1]);
break;
}
}
catch
{
GlobalExceptionHandler.HandleException();
}
}
开发者ID:JWSingleton,项目名称:SolidEdgeSpy,代码行数:21,代码来源:ComPropertyGrid.cs
示例20: rtbDisplay_LinkClicked
private void rtbDisplay_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
开发者ID:iasanders,项目名称:sushi,代码行数:4,代码来源:ActionBulkSiteCreation.cs
注:本文中的System.Windows.Forms.LinkClickedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论