|
You should call the Logo property after initializing the wizard page, for example:
public CustomWizardPageBase(WizardForm parent) : base(parent) { InitializeComponent(); ReplaceHeaderPanel(); }
private void ReplaceHeaderPanel() { Control headerPanelControl = Wizard.Controls["_headerBannerPanel"];
if (headerPanelControl != null) { PictureBox pictureBox = headerPanelControl.Controls["_pageLogo"] as PictureBox; Label headlineLabel = headerPanelControl.Controls["_headlineLabel"] as Label;
this.Logo = Resources.SftWizardHeader; } }
I'm also including how you can search the picture box and the headline label of the page by its names.
HTH,
|