-5

I want to implement a wizard using winforms and VS 2010.

I've got this tutorial, but as I'm new to Visual Studio and C# I don't really understand it.

Could someone help me out?

My main problem is that I don't know where to put the listings in this tutorial?

Should I put all the code in one class? Or in one form.cs? How is it divided?

greetz

Bl!tz

Bridge
  • 29,818
  • 9
  • 60
  • 82
user1414157
  • 53
  • 2
  • 10

2 Answers2

1

It looks as if you will need to create a UserControl (right-click your project, New... User Control) for each page of the Wizard, and you will need to implement IWizardPage on your UserControl. Than you have your WizardHost which is a single Form.

So to answer your question you will have one Form and a UserControl for each page of the Wizard.

idlemind
  • 686
  • 8
  • 17
0

This is a simple example, use groupboxes, and set them all on visibility hidden, but only show the first one, then when u click the button u set the visibility of the first groupbox to hidden, and the set the visibility of the 2e one to show.

a groupbox can contain controls, so that u wont have to show or hide individual controls

JohnnBlade
  • 4,261
  • 1
  • 21
  • 22