public ref class WebBrowser1 : public WebBrowserBase if ( !this->WebBrowser1->Url->Equals( "about:blank" ) ) { this->WebBrowser1->Refresh(); } }
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(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)