/// <summary> /// Creates a new instance of the <see cref="Wizard"/> class. /// </summary> public Wizard() { // call required by designer this.InitializeComponent(); // reset control style to improove rendering (reduce flicker) base.SetStyle(ControlStyles.AllPaintingInWmPaint, true); base.SetStyle(ControlStyles.DoubleBuffer, true); base.SetStyle(ControlStyles.ResizeRedraw, true); base.SetStyle(ControlStyles.UserPaint, true); // reset dock style base.Dock = DockStyle.Fill; // init pages collection this.pages = new WizardPagesCollection(this); }