Advertisement
Charliezkie

Ace Editor Loaded

May 28th, 2020
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.17 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.                 System.Windows.MessageBox.Show("Text editor couldn't be initialized! Are you connected to wifi?", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
  18.             }
  19.             AceEditor.Navigate(string.Format("file:///{0}/Editor.html", System.IO.Directory.GetCurrentDirectory()));
  20.  
  21. =============================================================================================
  22.  
  23. ace editor files download link: https://anonfiles.com/tcY0613fo0/ace_editor_files_zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement