DoubleBuffered

From Yefu's notes
Jump to: navigation, search

Learned from: http://stackoverflow.com/a/10277205/2704784

            //By pass the protection and set "DoubleBuffered" to true
            typeof(System.Windows.Forms.Form).InvokeMember(
                "DoubleBuffered",
                BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
                null,
                this.panel_main,
                new object[] { true });