This commit is contained in:
2014-10-08 11:09:53 +00:00
parent ddc18468dc
commit b2929f0d27
3 changed files with 30 additions and 1 deletions

View File

@@ -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);
}
}
}
}