diff --git a/CalendarNotepad/WorkMain.cs b/CalendarNotepad/WorkMain.cs index 2886898..b08be98 100644 --- a/CalendarNotepad/WorkMain.cs +++ b/CalendarNotepad/WorkMain.cs @@ -2,6 +2,7 @@ using CalendarNotepad.Models; using Microsoft.VisualBasic; using SqlSugar; +using System.Diagnostics; namespace CalendarNotepad { @@ -227,8 +228,10 @@ namespace CalendarNotepad return; } try { - //System.Diagnostics.Process.Start("https://www.baidu.com/"); - System.Diagnostics.Process.Start(e.LinkText); + Process.Start(new ProcessStartInfo { + FileName = e.LinkText, + UseShellExecute = true, + }); } catch(Exception ex) { MessageBox.Show(ex.ToString());