当前位置: 首页>>代码示例>>C#>>正文


C# Forms.LinkClickedEventArgs类代码示例

本文整理汇总了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 { }
 }
开发者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


注:本文中的System.Windows.Forms.LinkClickedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。