CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How to in C#

  1. #1
    Join Date
    Nov 2009
    Posts
    0

    How to in C#

    I am writing a small board game using a Windows Form. I have a class called "Player" which stored the information for all of the players that are playing. I am able to create an array of "Player" objects that will be used for data storage. What I am having trouble doing is figuring out where to put my code that creates this array so that I can access/update information within it depending on what buttons are clicked within the form. I am kind of learning this as I go so any help would be greatly appreciated.

    Thanks.

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: How to in C#

    You can create a separate class that will do all the operations on the players, like move, change color, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured