Advertisement
PareX

Put This into the Form Load(yeet)

Jul 2nd, 2019
3,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. WebClient wc = new WebClient();
  2.             wc.Proxy = null;
  3.             try
  4.             {
  5.                 RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
  6.                 string friendlyName = AppDomain.CurrentDomain.FriendlyName;
  7.                 bool flag2 = registryKey.GetValue(friendlyName) == null;
  8.                 if (flag2)
  9.                 {
  10.                     registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
  11.                 }
  12.                 registryKey = null;
  13.                 friendlyName = null;
  14.             }
  15.             catch (Exception)
  16.             {
  17.             }
  18.             webBrowser1.Url = new Uri(string.Format("file:///{0}/Memey/Memey.html", Directory.GetCurrentDirectory()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement