private void richCreditsBox_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (null != e.LinkText && e.LinkText.StartsWith("http://")) { System.Diagnostics.Process.Start(e.LinkText); } }
private void richTextBox1_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { // Call Process.Start method to open a browser // with link text as URL. p = System.Diagnostics.Process.Start(e.LinkText); }
private void richCreditsBox_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (null != e.LinkText && e.LinkText.StartsWith("http://")) { PdnInfo.OpenUrl(this, e.LinkText); } }
private void detailTextBox_LinkClicked(object sender, LinkClickedEventArgs e) { try { System.Diagnostics.Process.Start(e.LinkText); } catch { } }
void HandleLinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (!Popup.OKCancel("Never open links from people that you don't trust!", "Warning!!")) { return; } GuiUtils.OpenBrowser(e.LinkText); }
void HandleLinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (!Popup.OKCancel("Never open links from people that you don't trust!", "Warning!!")) { return; } try { Process.Start(e.LinkText); } catch { } }
private void txtLog_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { var ps = new ProcessStartInfo(e.LinkText) { UseShellExecute = true, Verb = "open" }; Process.Start(ps); }
private void richTextBox1_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { //MessageBox.Show("A link has been clicked.\nThe link text is '" + e.LinkText + "'"); try { Process.Start(e.LinkText.Replace("\r", "")); } catch (Exception e1) { } }
/// <summary> /// Handles the Link Clicked event, launches URL in browser. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The LinkClickedEventArgs.</param> private void RtbInformation_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { try { // A Normal Process.Start(e.LinkText) Should Work, But Does Not... Odd. System.Diagnostics.Process.Start("iexplore.exe", e.LinkText); } catch (System.ComponentModel.Win32Exception noBrowser) { MessageBox.Show(noBrowser.Message); } }
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); } }
/// <summary> /// Handles the LinkClicked event of the outputText control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.Forms.LinkClickedEventArgs"/> instance containing the event data.</param> private void outputText_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (e.LinkText.StartsWith("http://") || e.LinkText.StartsWith("https://")) { Process.Start("IExplore.exe", e.LinkText); } else if (e.LinkText.StartsWith("file://")) { Process.Start("Explorer.exe", e.LinkText); } }
private void rtb_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { try { System.Windows.Forms.Help.ShowHelp(this, e.LinkText.Replace("http://localhost", Helper.SimPePath)); } catch (Exception ex) { Helper.ExceptionMessage(ex); } }
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); } }
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e) { try { System.Diagnostics.Process.Start(e.LinkText); } catch (Exception ex) { (ParentForm as FormMain).ErrorReporting(ex, false); } }
void HandleLinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (MessageBox.Show("Never open links from people that you don't trust!", "Warning!!", MessageBoxButtons.OKCancel) == DialogResult.Cancel) { return; } try { Process.Start(e.LinkText); } catch { } }
private void descriptionText_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { try { System.Diagnostics.Process.Start(e.LinkText); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void ChatLog_LinkClicked(object sender, LinkClickedEventArgs e) { try { Process.Start(e.LinkText); } catch (Exception) { // ignored } }
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); } }
void txtRecord_LinkClicked(object sender, LinkClickedEventArgs e) { try { System.Diagnostics.Process.Start(e.LinkText); } catch { //MessageBox.Show("无法打开链接。","提示",MessageBoxButtons.OK,MessageBoxIcon.Information); } }
private void richTextBox2_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { try { System.Diagnostics.Process.Start(e.LinkText); } catch (Exception ex) { MessageBox.Show("Failed to open the URL:\r\n" + e.LinkText + ".\r\n" + ex.Message + "."); } }
private void aboutBox_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { try { System.Diagnostics.Process.Start(e.LinkText); } catch (Exception ex) { MessageBox.Show(ex.Message, "Unable to start default browser", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
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); } }
private void rtbDisplay_LinkClicked(object sender, LinkClickedEventArgs e) { try { Process.Start(e.LinkText); } catch (Exception ex) { Eh.GlobalErrorHandler(ex); } }
private void richTextBoxOutput_LinkClicked(object sender, LinkClickedEventArgs e) { try { var linkText = e.LinkText.Replace("%20", " "); Process.Start(linkText); } catch (Exception) { } }
private void ColoredReader_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { if (!e.LinkText.StartsWith("http://www.minecraft.net/classic/play/")) { if (MessageBox.Show("Never open links from people that you don't trust!", "Warning!!", MessageBoxButtons.OKCancel) == DialogResult.Cancel) { return; } } Process.Start(e.LinkText); }
private void chatBox_LinkClicked(object sender, LinkClickedEventArgs e) { var browser = new Process() { StartInfo = new ProcessStartInfo(e.LinkText) { UseShellExecute = true } }; browser.Start(); messageText.Focus(); }
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); } }
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); } }
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); } }
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); }
/// <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); } }
/// <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); } }
/// <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"); }
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(); } }
private void richTextBoxEx1_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { var linkInfos = e.LinkText.Split('#'); var fileInfos = linkInfos[1].Replace(".txt", "").Split('-'); var path = string.Format("{0}/{1}.xlsx", excelPath, fileInfos[0]); string sheetName = fileInfos[1]; //你的sheet的名字 var cellName = ToExcelCellName(int.Parse(linkInfos[3]), int.Parse(linkInfos[2])); string strStart = cellName; //起始单元格 string strEnd = cellName; //结束单元格 object missing = Type.Missing; Excel.Application excel = new Excel.Application(); Excel.Workbook book = excel.Workbooks.Open(path, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing); Excel.Worksheet sheet = book.Worksheets[sheetName]; excel.Application.Goto(sheet.Range[strStart, strEnd], true); excel.Visible = true; //System.Diagnostics.Process.Start("notepad.exe", "D:\debug\config.ini"); //MessageBox.Show("A link has been clicked.\nThe link text is '" + e.LinkText + "'"); }
/// <summary> /// Open URL in default Browser /// </summary> private void frTxBx_Notes_LinkClicked(object sender, LinkClickedEventArgs e) { Process.Start(e.LinkText); }
private void SharedLinkClickedEvent(object sender, LinkClickedEventArgs e) { string[] sData = e.LinkText.ToString().Split(new[] { "||EKU||" }, StringSplitOptions.None); if (sData[1] == "URL") { try { System.Diagnostics.Process.Start(sData[2].Trim()); } catch { } } else if (sData[1] == "PM") { this.PersonClicked = sData; this.nameClicked.Show(Cursor.Position); } else if (sData[1] == "CARD") { try { int evolved_skill = 0; int evolved_times = 0; try { evolved_skill = Utils.CInt(sData[4]); } catch { } try { evolved_times = Utils.CInt(sData[5]); } catch { } this.PopupCardPreviewWindow(Utils.CInt(sData[2]), Utils.CInt(sData[3]), Cursor.Position, "", 0, 0, 0, 0, null, null, null, null, evolved_times, evolved_skill); } catch (Exception ex) { Utils.Chatter(Errors.GetAllErrorDetails(ex)); } } else if (sData[1] == "RUNE") { try { this.PopupRunePreviewWindow(Utils.CInt(sData[2]), Utils.CInt(sData[3]), Cursor.Position); } catch (Exception ex) { Utils.Chatter(Errors.GetAllErrorDetails(ex)); } } }
private void uiNoticesTextbox_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { Process.Start(e.LinkText); }
void EulaTextBox_LinkClicked(System.Object sender, System.Windows.Forms.LinkClickedEventArgs e) { System.Diagnostics.Process.Start(e.LinkText); }
void box_LinkClicked(object sender, LinkClickedEventArgs e) { System.Diagnostics.Process.Start(e.LinkText); }
internal override void HandleLinkClicked(NSTextView textView, NSObject link, nuint charIndex) { var e = new LinkClickedEventArgs(link.ToString()); OnLinkClicked(e); }
protected void LinkClicked(object sender, LinkClickedEventArgs e) { Utils.InvokeBrowser(e.LinkText); }
private void rtb_LinkClicked(object sender, LinkClickedEventArgs e) { URLHelpers.OpenURL(e.LinkText); }
private void Link_Clicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { //User clicked a link in the chat, launch default browser System.Diagnostics.Process.Start(e.LinkText); }
private void OnTextLinkClicked(object sender, LinkClickedEventArgs e) { WinUtil.OpenUrl(e.LinkText, null); }
//----------------------------------------------------------------- private void richTextBox2_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { // リンクされたテキストを入力エリアに反映 this.inputArea.Text = e.LinkText; }
private void linkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { conf.LaunchBrowser(e.LinkText); }
private void Link_Clicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) // this is Link_Clicked function which start the link in browser { System.Diagnostics.Process.Start(e.LinkText); }
private void RevisionInfoLinkClicked(object sender, LinkClickedEventArgs e) { try { var url = e.LinkText; var data = url.Split(new[] { '#' }, 2); if (data.Length > 1) url = data[1]; try { var result = new Uri(url); if (result.Scheme == "gitex") { if (CommandClick != null) { string path = result.AbsolutePath.TrimStart('/'); CommandClick(sender, new CommandEventArgs(result.Host, path)); } return; } } catch (UriFormatException) { } using (var process = new Process { EnableRaisingEvents = false, StartInfo = { FileName = url } }) process.Start(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void richTextBox1_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { //How we open Links var p = System.Diagnostics.Process.Start(e.LinkText); }
private void m_PostBody_LinkClicked(object sender, LinkClickedEventArgs e) { ensureBrowserExists(); m_LinkViewForm.Url = e.LinkText; m_LinkViewForm.Show(); }
private void ColoredReader_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { Process.Start(e.LinkText); }
private void Link_Clicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { System.Diagnostics.Process.Start(e.LinkText); }
private void ScopeBox_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { LaunchLink(e.LinkText); }
private void txtLog_LinkClicked( object sender, LinkClickedEventArgs e ) { Process.Start( e.LinkText ); }
private void rtbDescription_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { System.Diagnostics.Process.Start( "IExplore", e.LinkText); }
private void richTextBoxDecodedRequest_LinkClicked(object sender, LinkClickedEventArgs e) { System.Diagnostics.Process.Start(e.LinkText); }
private void ActionBox_LinkClicked(System.Object sender, System.Windows.Forms.LinkClickedEventArgs e) { LaunchLink(e.LinkText); }
private void rtbDisplay_LinkClicked(object sender, LinkClickedEventArgs e) { Process.Start(e.LinkText); }
private void richTextBox1_LinkClicked(object sender, System.Windows.Forms.LinkClickedEventArgs e) { MessageBox.Show("A link has been clicked.\nThe link text is '" + e.LinkText + "'"); }