thielj / MetroFramework

Metro UI of Windows 8 for .NET Windows Forms applications
http://thielj.github.io/MetroFramework
Other
411 stars 224 forks source link

Form HandleCreated event is not evaluated #88

Open maxbgn opened 7 years ago

maxbgn commented 7 years ago

After using MetroFramework, I am not able to receive the HandleCreated event any more.

class FormMain : MetroFramework.Forms.MetroForm
...
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainForm = new FormMain();
            MainForm.HandleCreated += MainFormOnHandleCreated;
            Application.Run(MainForm);
        }
        private static void MainFormOnHandleCreated(object sender, EventArgs eventArgs)
        {
            Clonsole.WriteLine();
        }