當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。