/// <summary> /// Initializes a new instance of the WizardPageBase class /// </summary> public WizardPageBase() { this.InitializeComponent(); // we're gonna owner draw this all by ourself this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.UserPaint, true); // set some default values _backImageSizeMode = DefaultBackImageSizeMode; _backImageAlignment = DefaultBackImageAlignment; }
/// <summary> /// Initializes a new instance of the WizardPageBase class /// </summary> public WizardPageBase() { this.InitializeComponent(); // we're gonna owner draw this all by ourself this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.UserPaint, true); // set some default values _backImageSizeMode = DefaultBackImageSizeMode; _backImageAlignment = DefaultBackImageAlignment; }