System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(bool)

Here are the examples of the csharp api class System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

200 Examples 7

1. Example

Project: CSMSL
Source File: Examples.cs
[STAThread]
        private static void GuiExamples()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Peptide Calculator GUI Example
            //Application.Run(new PeptideCalculatorForm());
        }

2. Example

Project: CM3D2.MaidFiddler
Source File: MaidFiddler.cs
public void LoadGUI()
        {
            try
            {
                Application.SetCompatibleTextRenderingDefault(false);
                if (Gui == null)
                    Gui = new MaidFiddlerGUI(this);
                Application.Run(Gui);
            }
            catch (Exception e)
            {
                FiddlerUtils.ThrowErrorMessage(e, "Generic error", this);
            }
        }

3. Example

Project: mptanks2d
Source File: Program.cs
[STAThread]
        static void Main( string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            using (var g = new GameBuilder()) g.Run();
        }

4. Example

Project: BSA_Browser
Source File: Program.cs
[STAThread]
        static void Main(string[] args)
        {
            Application.SetCompatibleTextRenderingDefault(false);

            App myApp = new App();
            myApp.Run(args);
        }

5. Example

Project: bedrock
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Bootstrapper bootstrapper = new Bootstrapper();
            bootstrapper.Run();
        }

6. Example

Project: bedrock
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            QuickStartBootstrapper bootstrapper = new QuickStartBootstrapper();
            bootstrapper.Run();
        }

7. Example

Project: bedrock
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            UiCompositionBootstrapper bootstrapper = new UiCompositionBootstrapper();
            bootstrapper.Run();
        }

8. Example

Project: WinLess
Source File: Program.cs
[STAThread]
        static void Main(string[] args)
        {
            CommandArguments commandLineArguments = new CommandArguments(args);
            if (!commandLineArguments.ConsoleExit)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                SingleInstanceController controller = new SingleInstanceController();
                controller.Run(args);
            }
        }

9. Example

Project: MvvmFx
Source File: Program.cs
[STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            new AppBootstrapper().Run();
        }

10. Example

Project: eve-o-preview
Source File: Program.cs
private static void InitializeWinFormsGui()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
		}

11. Example

Project: NBi
Source File: Program.cs
[STAThread]
        static void Main(params string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ThreadException += OnUnhandledException;

            var bootstrapper = new Bootstrapper();
            bootstrapper.Boot(args);
        }

12. Example

Project: ShareX
Source File: Program.cs
private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Launcher.Run(args);
        }

13. Example

Project: VSProjectConverter
Source File: Application.Designer.cs
[STAThread]
			static void Main(string[] args)
			{
				System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
				MyApp = new MyApplication();
				MyApp.Run(args);
			}

14. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				_form = new formMain
				    {
				        ClientSize = new Size(640, 480)
				    };

			    // Get the initial time.
				_lastTime = GorgonTiming.MillisecondsSinceStart;

				// Run the application with an idle loop.
				//
				// The form will still control the life time of the application (i.e. the close button will end the application). 
				// However, you may specify only the idle method and use that to control the application life time, similar to 
				// standard windows application in C++.
				// Other overloads allow using only the form and assigning the idle method at another time (if at all), or setting
				// up an application context object to manage the life time of the application (with or without an idle loop 
				// method).
				Gorgon.Run(_form, Idle);
			}
			catch (Exception ex)
			{
				// Catch all exceptions here.  If we had logging for the application enabled, then this 
				// would record the exception in the log.
				GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
			}
		}

15. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				// Get the initial time.
				_lastTime = GorgonTiming.MillisecondsSinceStart;

				// Run the application context with an idle loop.
				//
				// Here we specify that we want to run an application context and an idle loop.  The idle loop 
				// will kick in after the main form displays.
				Gorgon.Run(new Context(), Idle);
			}
			catch (Exception ex)
			{
				// Catch all exceptions here.  If we had logging for the application enabled, then this 
				// would record the exception in the log.
				GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
			}
		}

16. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                Gorgon.Run(new MainForm());
            }
            catch (Exception ex)
            {
                GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
            }
        }

17. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				Gorgon.Run(new MainForm());
			}
			catch (Exception ex)
			{
				GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
			}
		}

18. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                Gorgon.Run(new FormMain());
            }
            catch (Exception ex)
            {
                GorgonDialogs.ErrorBox(null, ex);
            }
        }

19. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				Gorgon.Run(new MainForm());
			}
			catch (Exception ex)
			{
				GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
			}
		}

20. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				Gorgon.Run(new formMain());
			}
			catch (Exception ex)
			{
				GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
			}
		}

21. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				Gorgon.Run(new formMain());
			}
			catch (Exception ex)
			{
				GorgonException.Catch(ex, () => GorgonDialogs.ErrorBox(null, ex));
			}
		}

22. Example

Project: Gorgon
Source File: Program.cs
[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);

				Settings.Load();

				Gorgon.PlugIns.AssemblyResolver = (appDomain, e) => appDomain.GetAssemblies()
				                                                             .FirstOrDefault(assembly => assembly.FullName == e.Name);

				Gorgon.Run(new AppContext());
			}
			catch (Exception ex)
			{
				GorgonDialogs.ErrorBox(null, ex);
			}
			finally
			{
                Gorgon.PlugIns.AssemblyResolver = null;

				ContentManagement.UnloadCurrentContent();

				// Clean up the plug-ins.
				foreach (var plugInItem in PlugIns.ContentPlugIns)
				{
					plugInItem.Value.Dispose();
				}

				foreach (var plugInItem in PlugIns.WriterPlugIns)
				{
					plugInItem.Value.Dispose();
				}

				// Shut down the graphics interface.
				if (ContentObject.Graphics != null)
				{
					ContentObject.Graphics.Dispose();
					ContentObject.Graphics = null;
				}

				// Clean up temporary files in scratch area.
				if (Settings != null)
				{
					ScratchArea.DestroyScratchArea();
				}

				EditorLogging.Close();
			}
		}

23. Example

Project: ZetaResourceEditor
Source File: SkinHelper.cs
public static void InitializeAll()
        {
            DesignModeHelper.TurnOffDesignMode();

            SkinManager.Default.RegisterAssembly(typeof(ZetaTestSkin).Assembly);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Below Windows Vista, use form skins.
            SkinManager.EnableFormSkinsIfNotVista();

            //UserLookAndFeel.Default.ActiveLookAndFeel.SetSkinStyle(SkinNameDialogForms);
            UserLookAndFeel.Default.SetSkinStyle(SkinNameDialogForms);
            AppearanceObject.DefaultFont = StandardFont;

            _badc = new MyDefaultBarAndDockingController();
            _badc.Apply();
        }

24. Example

Project: LiteDevelop
Source File: Program.cs
[STAThread]
        static void Main(string[] args)
        {  
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LiteDevelopApplication.Run(args);
        }

25. Example

Project: WCell
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
        }

26. Example

Project: duality
Source File: Program.cs
private static void PrepareWinFormsApplication()
		{
			Application.CurrentCulture = Thread.CurrentThread.CurrentCulture;
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.ThreadException += Application_ThreadException;
			AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
		}

27. Example

Project: rensenware_force
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
        }

28. Example

Project: rensenware-protect
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
        }

29. Example

Project: alphaTab
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainWindow());
        }

30. Example

Project: Borderless-Gaming
Source File: Program.cs
[STAThread]
        static void Main()
        {
          
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Tools.Setup();
            //use github updating for non-steam
            if (!Config.Instance.StartupOptions.IsSteam && Config.Instance.AppSettings.CheckForUpdates)
            {
                Tools.CheckForUpdates();
            }
            ForegroundManager.Subscribe();
            Application.Run(new MainWindow());
        }

31. Example

Project: TraceLab
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

32. Example

Project: sharpneat
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

33. Example

Project: sharpneat
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

34. Example

Project: sharpneat
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

35. Example

Project: RNGReporter
Source File: Program.cs
[STAThread]
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length > 0 && args[0] == "-r")
                Application.Run(new Researcher());
            else
                Application.Run(new MainForm());
        }

36. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

37. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

38. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

39. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

40. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

41. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

42. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

43. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

44. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

45. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

46. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

47. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

48. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

49. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

50. Example

Project: Krypton
Source File: Program.cs
[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }