日期:2014-05-16 浏览次数:20859 次
string[] tmp = webBrowser1.StatusText.Split('?')[1].Split('&');
if (tmp[0].Split('=')[1] == "image")
{
e.Cancel = true;
string ids = tmp[1].Split('=')[1];
pictureTest p = new pictureTest();
p.images = ids;
p.ShowDialog();
}
private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (e.Url.AbsoluteUri.Contains("contact"))
{
e.Cancel = true;
Form2 newForm = new Form2();
newForm.ShowDialog();
}
}