This commit is contained in:
18
Form1.cs
18
Form1.cs
@@ -19,7 +19,6 @@ namespace WebChecker
|
||||
|
||||
int m_iReqCnt = 0;
|
||||
int m_iRespCnt = 0;
|
||||
string m_strStatus = "";
|
||||
|
||||
DateTime m_LastCheckT;
|
||||
|
||||
@@ -143,5 +142,22 @@ namespace WebChecker
|
||||
this.Show();
|
||||
this.WindowState = FormWindowState.Normal;
|
||||
}
|
||||
|
||||
private void btOpen_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Diagnostics.Process.Start(tbURL.Text);
|
||||
}
|
||||
catch(System.ComponentModel.Win32Exception noBrowser)
|
||||
{
|
||||
if(noBrowser.ErrorCode == -2147467259)
|
||||
MessageBox.Show(noBrowser.Message);
|
||||
}
|
||||
catch(System.Exception other)
|
||||
{
|
||||
MessageBox.Show(other.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user