Hello all,


I'm trying to write an application in C#.NET (Visual Studio 2002), that deals with multiple windows, a bit like the wizards do, that is with a "Next" button etc.

I'd like to be able to close one form and show another one when clicking on a button. I tried calling Application.Run() without a Form nor ApplicationContext parameter, and calling Form.Show() for both forms sequentially.

I also tried creating my own ApplicationContext and changing the MainForm property in the Button_Clicked() event, or in the Form_Closed() one, and several different variations without success.

I can't find posts on this topic in the forum. I'd be grateful if someone could help me with this!

Thanks,
Maxime