Which wizard control can I use in a WinForms application?

Red Swan picture Red Swan · Feb 10, 2011 · Viewed 15.3k times · Source

I was looking for scenario-like wizard (with Next/Back buttons) that I can use in a Windows application under .NET 3.5. Is there any wizard control provided by Microsoft in .NET Framework 3.5?

Answer

Cody Gray picture Cody Gray · Feb 10, 2011

No, Microsoft does not provide a ready-made wizard control as part of the .NET Framework. You will need to build your own.

There are several samples available on the web that can help get you started:


Of course, as you can see, the majority of those samples implement the old Wizard 97 interface, rather than the new Aero Wizards (found in Windows Vista and 7). I've seen one of those on Code Project, too:

But perhaps the best implementation I've seen is found in the Windows Forms Aero library, available for download here on CodePlex. The Aero Wizard .NET Library is another great option, also on CodePlex.

Both of those are great looking, well-designed wizard controls, but neither of them will work properly on Windows XP (which doesn't support the Aero theme). The biggest problem you'll run into is ensuring that your implementation is fully backward-compatible, properly reverting to the Wizard 97 style when running on a version of Windows prior to Vista. I haven't seen a control that gets this right posted online yet.


If spending money on a third-party control is an option, you might look into XtraWizard by Devexpress or the Wizard Framework by Divelements.


But no matter which route you choose, I highly recommend following Microsoft's Wizard guidelines.