Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 45 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. public void changeUrl(string url)
  2.         {
  3.             try
  4.             {
  5.                 Uri address = new Uri(url);
  6.                 url = address.AbsoluteUri;
  7.             }catch (Exception e)
  8.             {
  9.                 MessageBox.Show(e.Message);
  10.             }
  11.             Control ctrl = getBrowser();
  12.             if(ctrl is WebBrowser)
  13.             {
  14.                 WebBrowser ie = (WebBrowser)ctrl;
  15.                 ie.Navigate(url);
  16.             }
  17.             else
  18.             {
  19.                 ChromiumWebBrowser chrome = (ChromiumWebBrowser)ctrl;
  20.                 chrome.Load(url);
  21.             }
  22.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top