This is what i intend to do .
Form 1 is displayed , requesting some data . Cliking the next button would display form 2 requesting some more data . Back button will take it back to form 1 .
Finally at the last form on clicking a finish button , Id like to retrieve all开发者_C百科 the data and display it in one singe form . I would like to know what is the best design approach should I follow
Ie : Do i have all the controls in a single form and make them visible and invisible .. ? or should i have multiple forms with global values to be accessed in the end?
I would recommend that you create user controls for each tab except maybe the last and encapsulate all the logic for that tab within the control. Add properties to the control to get the values entered on the form. Add all these user controls to a parent form which handles navigation.
I think you can achieve this by IUIs (Inductive User Interfaces)
Its just like as Dark Falcon has mentioned above.. you can create a parent form and add user controls which would inherit the navigation controls and tabs from the parent.
精彩评论