I use a code in Window programming using C#
this.close();
this code close open window and after that no code execute which is written after the " this.close();".
I required a code by which when i close a one window then a next window should open without the use of parenting concept.
can any one do my help?

Johnny GC44 reputationPosted Jul 24, 2008, 1:58 AM EDT
I think there are a few posibilities to do this:
1. you code in Program.cs creating an event handler and treating there each window close and from where you can create new windows all the time
2. you have a window where you treat the OnClose using its CloseEventArgs.Cancel set to true and then hide it and show another one
hope this helps,
Johnny
Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 24, 2008, 3:36 AM EDT
FYI....you won't be able to close the "startup" form.