首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

重写backKeyPressEvent事件解决方法

2012-05-08 
重写backKeyPressEvent事件C# codeif (!webBrowser1.Source.Equals(http://www.baidu.com)){string newU

重写backKeyPressEvent事件

C# code
if (!webBrowser1.Source.Equals("http://www.baidu.com"))            {                string newURL = "http://www.baidu.com";                try                {                    newURL = sta.Pop().ToString();                    newURL = sta.Pop().ToString();                }                catch { MessageBox.Show("error!"); }                webBrowser1.Source = new Uri(newURL);             }

每次都会到异常处理 请问是怎么回事?

[解决办法]
什么异常?
sta是什么?

热点排行