Click here to Skip to main content
15,879,535 members
Home / Discussions / C#
   

C#

 
AnswerRe: Restore main window from other process Pin
Paulo Zemek11-Nov-09 6:59
mvaPaulo Zemek11-Nov-09 6:59 
GeneralRe: Restore main window from other process Pin
Daniel Leykauf11-Nov-09 7:10
Daniel Leykauf11-Nov-09 7:10 
Question[Message Deleted] Pin
Crapaw4511-Nov-09 5:49
Crapaw4511-Nov-09 5:49 
QuestionActive UICulture in setup rpoject Pin
waelmail10511-Nov-09 5:19
waelmail10511-Nov-09 5:19 
Questioncan't get depth chart to display Pin
rooster215411-Nov-09 4:47
rooster215411-Nov-09 4:47 
AnswerRe: can't get depth chart to display Pin
Keith Barrow11-Nov-09 6:24
professionalKeith Barrow11-Nov-09 6:24 
GeneralRe: can't get depth chart to display Pin
rooster215411-Nov-09 9:37
rooster215411-Nov-09 9:37 
GeneralRe: can't get depth chart to display Pin
Keith Barrow11-Nov-09 13:28
professionalKeith Barrow11-Nov-09 13:28 
This idea is not good from a from an oo point of view. It is important to encapsulate your classes properly.
You have a need for a team class, it should be responsible for maintaining it's own list of players. Likewise each player must maintain it's own information (e.g. Name, Position etc).
I suggest you try my example. To get the list of players in a particular position, you would just have to loop around each team, then loop each roster looking for players of the type required.
I also suggest you find a good OO book and learn the basic principles. If you are using an OO language like C#, learning OO principles will make coding easier for you, and the code you will produce will be neater and easier to maintain and understand. It is difficult to make the mental shift from procedure to object oriented programming, but doing so will make your life easier when using c# and is well worth the effort.

CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks

QuestionHow to resize two texbox proportionally? Pin
Zeokat11-Nov-09 1:21
Zeokat11-Nov-09 1:21 
AnswerRe: How to resize two texbox proportionally? Pin
Lyon Sun11-Nov-09 2:12
Lyon Sun11-Nov-09 2:12 
GeneralRe: How to resize two texbox proportionally? Pin
Zeokat11-Nov-09 10:04
Zeokat11-Nov-09 10:04 
GeneralRe: How to resize two texbox proportionally? Pin
Zeokat12-Nov-09 0:10
Zeokat12-Nov-09 0:10 
Questionhow to perform image erosion in c#? Pin
Rubasini11-Nov-09 1:04
Rubasini11-Nov-09 1:04 
Questionhow to build remote system call application ? Pin
sudhir behera11-Nov-09 0:24
sudhir behera11-Nov-09 0:24 
AnswerRe: how to build remote system call application ? Pin
Abhishek Sur11-Nov-09 0:45
professionalAbhishek Sur11-Nov-09 0:45 
QuestionCreate radio buttons using data from XML Pin
Zar Ni10-Nov-09 22:59
Zar Ni10-Nov-09 22:59 
AnswerRe: Create radio buttons using data from XML Pin
Calla10-Nov-09 23:31
Calla10-Nov-09 23:31 
QuestionTableLayoutPanel Problem Pin
Tim Daughton10-Nov-09 22:32
Tim Daughton10-Nov-09 22:32 
AnswerMessage Closed Pin
10-Nov-09 22:38
stancrm10-Nov-09 22:38 
GeneralRe: TableLayoutPanel Problem Pin
Tim Daughton10-Nov-09 22:59
Tim Daughton10-Nov-09 22:59 
Questionupdating multiple rows of a single column with different values at runtime from C# Pin
Member 236780010-Nov-09 22:18
Member 236780010-Nov-09 22:18 
AnswerRe: updating multiple rows of a single column with different values at runtime from C# Pin
MumbleB11-Nov-09 0:24
MumbleB11-Nov-09 0:24 
GeneralRe: updating multiple rows of a single column with different values at runtime from C# Pin
Member 236780011-Nov-09 8:15
Member 236780011-Nov-09 8:15 
QuestionHTML to plain text Pin
Hum Dum10-Nov-09 22:16
Hum Dum10-Nov-09 22:16 
AnswerMessage Closed Pin
10-Nov-09 22:22
stancrm10-Nov-09 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.