I'm very new to C#, and I have a trivial problem that will take 10 seconds for anyone in the know. I'm trying to make an application for PocketPCs where the user enters a lot of information about himself. Because the screen is small, this has to be spread over several pages. So I made 4 forms, each with a "next" button.
I couldn't get the next button to cause a switch to the next form. In the click method for the button, I tried calling the Show method of the new form and the Hide method of the old one, but nothing happened. I have been looking at some C# tutorials but I couldn't find anything that addresses this specific problem.
not sure if this will help or not since i'm not too familiar with working with pocketPCs, but when working on .net web apps i know you can't have more then one form per page. So maybe create 4 different pages with one form on each page and have the click method redirect to the new page. Hope this helps,
To do what you want you need to separate the information you are entering in each screen from the screen code itself (separate GUI logic from Business logic if you will). Basically the way I would do this is by having a GUI mediator (mediator pattern) to control the screen creation and deletion and having individual business objects to handle the info you are entering on each screen. I just did this for a Win Forms app using C++, it can be done without too much effort.