Subject: beginning forms problem
Posted By: toiletgraffiti Post Date: 1/10/2006 11:09:47 AM
hi there

im pretty new to the whole c# world and im struggling a bit.  i want to create a windows application that has several 'screens' on it (ie theres a start screen where the user inputs info, then a second screen that uses the users info and a third screen that dsiplays a final result).

my questions is this:  can i create this application using 3 different forms within the project or do i need to dynamically build the interface 3 times on the one form?  i cant seem to be able to share the data from form to form using the former method above.

any help greatly appreciated.
tg.

Reply By: adam_kahtava Reply Date: 1/10/2006 7:44:54 PM
Perhaps take a more Object Oriented approach;
create an object that is populated by the 1st form ("user inputs info"),
create a function within the object that "uses the users info" and call this method from the 2nd form,
create another function within the object "that displays a final result" and call this method from the 3rd form.

Check out http://www.codeproject.com/csharp/ for more help.
Reply By: toiletgraffiti Reply Date: 1/11/2006 5:09:50 AM
hi there, thanks for your reply.  about 20 minutes after i wrote this post i actually began on a more oop approach and got it all working.

cheers!
tg.

Reply By: kapi.goel Reply Date: 1/11/2006 7:39:09 AM
hi,

U can opt a single form having 3 different panel control (just like Div in HTML). Just enable the panels one by one, u will get different forms in display (actually a common form with all the info)

i hope u will get an idea



KG

Go to topic 38572

Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394
Return to index page 393
Return to index page 392
Return to index page 391
Return to index page 390
Return to index page 389