Windows Forms

This is a discussion on Windows Forms within the C# Programming forums, part of the General Programming Boards category; Hello, I am fairly new to C# and I am writing a program that simulates a cricket match between two ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    36

    Windows Forms

    Hello,

    I am fairly new to C# and I am writing a program that simulates a cricket match between two teams. So far, I have several different Windows Forms, representing, a home screen form, a form to select the teams, a form to display the team's stats, and a form to display the match screen. The program runs by creating a "Home Screen" form, and then when the user clicks a button to start a match, this form closes and a new "Team Select" form is created and displayed. Once the user has selected the teams to simulate, this form closes and a "Match" form is created and displayed, and so on.

    Is this the proper way to make a C# program? Do programmers generally have a new Windows Form for each screen, switching between program screens by using the Show() and Hide() properties? I would have thought that it makes more sense to have one single "mother" form which updates its apparance and properties when required, rather than having several different forms all running at once, with all but one hidden.

    Any suggestions for a newbie?

    Thanks!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Sounds fine to me.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    Posts
    120
    well if you were concerned about having multiple forms running, you could store things in different panels and then just bring the panel you want to use to front when its time.

    I am not suggesting you do it this way, but it would allow you to only need one form.

    Multi formed apps are cool by my book, not that it is book that anyone else but myself goes by, heh.
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  2. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  3. accessing windows forms textbox properties
    By luigi40 in forum C# Programming
    Replies: 5
    Last Post: 04-19-2005, 04:53 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

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