using System; using System.Windows.Forms; using NLog; using NLog.Targets; namespace RichTextBox2 { static class Example { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); // for NLog configuration look in Form1.cs } } }