winforms - C#: Forms: Step-By-Step Hide/Show Forms -
i writing small windows forms application in c#. basically, ask user series of questions in step-by-step format. have new form each "step," question is: there standard logical way of doing this?
right now, doing making class holds instance of each different form. have "next" , "previous" buttons allow user go , forth using "show()" , "hide()" commands different forms.
some problems i'm having: -i want forms pop in exact same location previous 1 (right bit skewed) -i'm afraid method of implementation not best. common thing do, i'm sure there accepted procedures.
i'm looking insight people more experienced me. i'll appreci
for example... user opens program. first screen asks them choose date. user chooses date , clicks "next." first screen closes , next screen opens. second screen asks user choose file. user chooses file , clicks "next." etc.
thanks!
edit: further clarify...install screens similar want.
there few wizard control components out there allow this, or can build own.
for free wizard control, see here: http://www.codeproject.com/kb/miscctrl/designtimewizard.aspx
to grow own relatively simple do, tedious. i'd recommend looking @ 1 posted, examining code, , if won't work as-is, have design can learn in deciding how build own.
in essence, though, don't want different forms. that's got nightmare.
you should instead using 1 form , having different panels on form shown hidden necessary.
Comments
Post a Comment