Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebClient wc = new WebClient();
- wc.Proxy = null;
- try
- {
- RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
- string friendlyName = AppDomain.CurrentDomain.FriendlyName;
- bool flag2 = registryKey.GetValue(friendlyName) == null;
- if (flag2)
- {
- registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
- }
- registryKey = null;
- friendlyName = null;
- }
- catch (Exception)
- {
- System.Windows.MessageBox.Show("Text editor couldn't be initialized! Are you connected to wifi?", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
- }
- AceEditor.Navigate(string.Format("file:///{0}/Editor.html", System.IO.Directory.GetCurrentDirectory()));
- =============================================================================================
- ace editor files download link: https://anonfiles.com/tcY0613fo0/ace_editor_files_zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement