Click here to Skip to main content
16,020,305 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where to write application files on Vista/W7 Pin
Ian Shlasko23-Oct-09 8:46
Ian Shlasko23-Oct-09 8:46 
QuestionHow to control speakers individually? Pin
Gedon_Sarep23-Oct-09 8:03
Gedon_Sarep23-Oct-09 8:03 
QuestionAutomated save as webpage completed by C# Pin
Nguyễn Đức Thiện23-Oct-09 6:51
Nguyễn Đức Thiện23-Oct-09 6:51 
AnswerRe: Automated save as webpage completed by C# Pin
Not Active23-Oct-09 7:05
mentorNot Active23-Oct-09 7:05 
GeneralRe: Automated save as webpage completed by C# Pin
Nguyễn Đức Thiện23-Oct-09 7:12
Nguyễn Đức Thiện23-Oct-09 7:12 
AnswerMessage Closed Pin
23-Oct-09 7:45
stancrm23-Oct-09 7:45 
GeneralRe: Automated save as webpage completed by C# Pin
Nguyễn Đức Thiện23-Oct-09 15:31
Nguyễn Đức Thiện23-Oct-09 15:31 
QuestionBeginner in need of help Pin
Darren Shields23-Oct-09 6:04
Darren Shields23-Oct-09 6:04 
Hi everyone, as already stated I am completely new to c#, I am trying to write a program that will generate random scores for football games in a league where each team plays one another once, however after generating the score i wish to assess which team should be awarded 3 points for winning or if both should be awarded 1 point, so I can produce these in a league table. I have written this code but get an error saying " input string was not in a correct format", here is the part of my code causing the error:


if (Convert.ToInt16(score.Text) > Convert.ToInt16(score2.Text))
{
points12 += 3;
}
else if (Convert.ToInt16(score.Text) < Convert.ToInt16(score2.Text))
{
points4 += 3;
}
else
{
points4 += 1;
points12 += 1;
}

Any help would be greatly appreciated
Thanks in advance
AnswerRe: Beginner in need of help Pin
Henry Minute23-Oct-09 6:16
Henry Minute23-Oct-09 6:16 
GeneralRe: Beginner in need of help Pin
Darren Shields23-Oct-09 6:30
Darren Shields23-Oct-09 6:30 
GeneralRe: Beginner in need of help Pin
Henry Minute23-Oct-09 6:44
Henry Minute23-Oct-09 6:44 
AnswerRe: Beginner in need of help Pin
ely_bob23-Oct-09 6:43
professionalely_bob23-Oct-09 6:43 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 7:02
mentorNot Active23-Oct-09 7:02 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 7:41
professionalely_bob23-Oct-09 7:41 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 7:53
mentorNot Active23-Oct-09 7:53 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:12
professionalely_bob23-Oct-09 8:12 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 8:22
mentorNot Active23-Oct-09 8:22 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 8:41
ragnaroknrol23-Oct-09 8:41 
GeneralRe: Beginner in need of help Pin
EliottA23-Oct-09 17:19
EliottA23-Oct-09 17:19 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 8:13
ragnaroknrol23-Oct-09 8:13 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 8:29
mentorNot Active23-Oct-09 8:29 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:42
professionalely_bob23-Oct-09 8:42 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:31
professionalely_bob23-Oct-09 8:31 
GeneralRe: Beginner in need of help [modified] Pin
ragnaroknrol23-Oct-09 8:46
ragnaroknrol23-Oct-09 8:46 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 9:06
professionalely_bob23-Oct-09 9:06 

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.