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

重写backKeyPressEvent事件,该如何处理

2012-12-29 
重写backKeyPressEvent事件if (!webBrowser1.Source.Equals(http://www.baidu.com)){string newURL h

重写backKeyPressEvent事件

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是什么?

热点排行