开发者

Acessing data using next and back in c# forms

开发者 https://www.devze.com 2023-03-14 02:13 出处:网络
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 .

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消