主应用程序挂在System.Diagnostics.Process.Start(URL)的用法上 [英] Main application hangs on usuage of System.Diagnostics.Process.Start(URL)

查看:173
本文介绍了主应用程序挂在System.Diagnostics.Process.Start(URL)的用法上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用以下代码从Windows应用程序中打开Web浏览器

string url =" http://google.com " ;;

We are using following code to open the web browser from Windows application

string url = "http://google.com";

尝试

{

System.Diagnostics. 处理 .Start(url);
}

System.Diagnostics.Process.Start(url);
}

 

捕获 ( 异常 例如)
{
MessageBox .Show(ex.Message, 应用程序错误" .OK);
}

我们在按钮单击事件中使用以上代码.该应用程序运行正常,并打开了IE浏览器.但是Windows应用程序已挂起.当我们使用IE7.0时,我们没有遇到这个问题.使用IE8.0时我们正面临此问题.

请帮助我们解决此问题.

catch (Exception ex)
{
MessageBox.Show(ex.Message, "Application Error", MessageBoxButtons.OK);
}

We are using the above code in button click event. The application is working fine and opening the IE browser. But the windows application is hanging. When we are working with IE7.0 we are not getting this issue. We are facing this issue when we use IE8.0.

Please help us in resolving the issue.

推荐答案

您可以粘贴整个按钮敲击事件代码吗?还要在广告代码块"中使用插入代码块"选项以良好的格式粘贴代码.
Can you paste whole code for button cluck event? Also use "Insert Code block" option to paste code in good format.


这篇关于主应用程序挂在System.Diagnostics.Process.Start(URL)的用法上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆