C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-15-2006, 12:00 PM   #1
Registered User
 
Join Date: Aug 2006
Posts: 32
C# Game using Forms

Hello,

I am trying to write a sports management game in C#, played mainly by clicking buttons to move between difference screens, rather than a video graphics based game. I am wondering what the best way to create this game is? So far, I have chosen each new screen to be represented as a form. For example, clicking the "go to match" button from the "team select screen" form, will open up a new form, "match screen". Is this the best way of doing it?

When a new form is created, data is passed between the two forms. This way means that I cannot "Close()" any of the forms, but must just "Hide()" them, as it seems that a form must always have its parent form active. How can I have a global class that will store data without having to rely on passing data between forms?

Thanks for any help you can give me,

Ed.
ejohns85 is offline   Reply With Quote
Old 12-16-2006, 05:35 PM   #2
Registered User
 
Join Date: Mar 2005
Location: Mountaintop, Pa
Posts: 1,059
I would suggest you use a public static class to hold your variables with get/set accessor properties.
BobS0327 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a simple Windows game ejohns85 C Programming 1 05-22-2009 12:46 PM
Open Source / Semi Open source game idea. Help needed CaptainPatent Projects and Job Recruitment 10 05-16-2007 10:44 AM
game engine advice? stien Game Programming 0 01-23-2007 03:46 PM
how do the game engine and the api interact? Shadow12345 Game Programming 7 06-05-2002 10:06 PM
My Maze Game --- A Few Questions TechWins Game Programming 18 04-24-2002 11:00 PM


All times are GMT -6. The time now is 04:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22