Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
is there any way to detect the hierarchy of forms in a multi-forms application?
for example I have an app with 3 forms, that by clicking on a button in form1, next form (form2) will be showed. and by clicking on a button in form2, next form (form3) will be showed.
if I have .exe file of my app, is there any way to detect this hierarchy of it's forms? if no, if I have all code of my app, is there such way?

thanks
Posted
Comments
Maciej Los 20-Apr-15 14:50pm    
Are you trying to achieve something similar to "Wizard of ..." (step by step)?
http://stackoverflow.com/questions/2340566/creating-wizards-for-windows-forms-in-c-sharp[^]
Simple Wizard for WinForms[^]
Sergey Alexandrovich Kryukov 20-Apr-15 14:58pm    
It's not really hierarchy. Typically, there is a main form, which is the Owner (not Parent) of all other forms; or not. Everything else makes little to no sense. Why doing this automation at all?
—SA
Member 11562137 20-Apr-15 15:13pm    
in other words, I want to know each form will be opened after which other form?
for example as a result I understand that form2 will be opened after clicking on a button in form1.
I want to use these information in an other program.
Sergey Alexandrovich Kryukov 20-Apr-15 15:30pm    
This is not always so. Wizard-like behavior is less usual than the set of free choices the user have at any time. And this is still not an hierarchy. To me, the whole idea of "automation" sounds pretty bad.
—SA
Maciej Los 20-Apr-15 15:52pm    
No hierarchy, no automation. OP wants to create kind of "wizard". I agree with you Sergey, that the best way is to let user choose what to do at this moment, but sometimes wizard is the best option ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900