Trouble with Base Class for Form

Wizard for Windows Forms Forum

Posted 19 years ago by TommyM
Avatar
Changing the base class of my form from:

System.Windows.Forms.Form

to:

ActiproSoftware.Wizard.WizardDialogForm

causes the wizard control to dissapper!

Am I missing something simple???

Comments (4)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, when you change a Form to a WizardDialogForm, it creates its own Wizard control which is available from the WizardDialogForm's Wizard property. You probably have the new one hiding your old one. You need to take all the InitializeComponent code and change the references from your old Wizard to the one exposed by WizardDialogForm.Wizard. Then remove your old control after you make those changes. Obviously back up your code before doing this.


Actipro Software Support

Posted 19 years ago by TommyM
Avatar
Hmm...I see. That fixed that issue but caused another.

I needed to be able to put some items above the wizard control (bread-crumbs, and a status bar). Now that the form is a WizardDialog...do I still have control over the size and placement of the Wizard object?
Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You can get to the Wizard control via the WizardDialogForm's Wizard property. So I would think that if you leave it as a DockStyle.Fill, you can still insert a StatusBar below it with DockStyle.Top.


Actipro Software Support

Posted 19 years ago by TommyM
Avatar
Thank you very much!!! Great support!
The latest build of this product (v24.1.0) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.