Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2006, 12:09 PM
Registered User
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default beginning forms problem

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.

 
Old January 10th, 2006, 08:44 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old January 11th, 2006, 06:09 AM
Registered User
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old January 11th, 2006, 08:39 AM
Authorized User
 
Join Date: Dec 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kapi.goel
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with forms iancarey Beginning VB 6 1 July 18th, 2005 01:02 PM
I have problem with Logins and forms denizci2000 Dreamweaver (all versions) 3 November 18th, 2004 01:33 PM
PHP problem with forms WIx Beginning PHP 1 August 5th, 2004 08:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.