刷新当前网页 [英] Refresh Current Web Page
本文介绍了刷新当前网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想刷新当前网页.我正在使用Win 7,iExplorer.我尝试了这个,但是我缺少了一些东西.任何帮助表示赞赏.谢谢.
I want to refresh the current web page. I am using Win 7, iExplorer. I tried this but I am missing something. Any help is appreciated. Thank you.
public ref class WebBrowser1 : public WebBrowserBase
if ( !this->WebBrowser1->Url->Equals( "about:blank" ) )
{
this->WebBrowser1->Refresh();
}
}
推荐答案
尝试一下:
Try this :
public:
virtual void Refresh() override
// Reloads the current page.
void ButtonRefresh_Click( System::Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
// Skip refresh if about:blank is loaded to avoid removing
// content specified by the DocumentText property.
if ( !this->WebBrowser1->Url->Equals( "about:blank" ) )
{
this->WebBrowser1->Refresh();
}
}
这篇关于刷新当前网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文