Wizards

roger's picture

Implementing a Wizard in C#, Part 2

In this installment (see here for the previous installment), we'll be fixing a few things and making the whole thing prettier.

roger's picture

Implementing a Wizard in C#

Oddly, the Windows Forms libraries don't provide any support for writing wizards. Here's one way to do it.

roger's picture

Disabling the Cancel button in a Wizard

CPropertySheet provides the SetWizardButtons function, allowing you to enable or disable the "Back" or "Next" buttons. It doesn't, however, allow you to disable the "Cancel" button.

Here's how:

CWnd *pCancel = GetParent()->GetDlgItem(IDCANCEL);
if (pCancel)
	pCancel->EnableWindow(FALSE);

roger's picture

Displaying Progress in a Wizard

I'm adding a wizard to the program that I'm currently working on. The wizard walks the user through importing some information from a file. I'd like to be able to display the import progress as a seamless part of the wizard.

Syndicate content