Change color of pagedescription and pagecaption

Wizard for Windows Forms Forum

Posted 13 years ago by S. Kollerie
Avatar
How do i change the color of the pagedescription and the pagecaption.

Please give me an example in vb.net someting like me.wizard1.pagecaptioncolor etc.

Thanks this is driving me crazy..

Comments (4)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi there... the WindowsClassicWizardRenderer renderer class does have properties for WizardPageCaptionForeColor and WizardDescriptionForeColor. You can get that renderer's instance from the wizard.Renderer property however that property is defined as IWizardRenderer. The IWizardRenderer interface doesn't define the properties but since the default renderer is WindowsClassicWizardRenderer, you can cast it to WindowsClassicWizardRenderer to access the properties.

So something like this should work:
((WindowsClassicWizardRenderer)this.Wizard.Renderer).WizardPageCaptionForeColor = Color.Red;


Actipro Software Support

Posted 13 years ago by S. Kollerie
Avatar
Does anyone have a Visual Basic example for this?
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
CType(Me.Wizard.Renderer, WindowsClassicWizardRenderer).WizardPageCaptionForeColor = Color.Red


Actipro Software Support

Posted 13 years ago by S. Kollerie
Avatar
Thank you! This works
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.