Click here to Skip to main content
16,012,352 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to set the border Line for the winForm in C#? Pin
mctramp16812-Feb-09 14:53
mctramp16812-Feb-09 14:53 
GeneralRe: how to set the border Line for the winForm in C#? Pin
Dave Kreskowiak12-Feb-09 4:07
mveDave Kreskowiak12-Feb-09 4:07 
GeneralRe: how to set the border Line for the winForm in C#? Pin
mctramp16812-Feb-09 14:57
mctramp16812-Feb-09 14:57 
Questiontransfering multi-dimensional array to database Pin
batkaval11-Feb-09 22:42
batkaval11-Feb-09 22:42 
AnswerRe: transfering multi-dimensional array to database Pin
musefan11-Feb-09 23:18
musefan11-Feb-09 23:18 
GeneralRe: transfering multi-dimensional array to database Pin
batkaval11-Feb-09 23:38
batkaval11-Feb-09 23:38 
GeneralRe: transfering multi-dimensional array to database Pin
musefan11-Feb-09 23:43
musefan11-Feb-09 23:43 
GeneralRe: transfering multi-dimensional array to database Pin
Deresen11-Feb-09 23:51
Deresen11-Feb-09 23:51 
First of all, learn some things about variablenames.
I've been told that you could think for 10 minutes about a proper variable name, rather than 1 second for a bad one.
For instance:
for (int i = 3; i < 17; i++) (There is 17 students)

An iterator is fine and if you call it 'i' is sometimes fine to (it's intergrated in our system). But you say as a comment that there are 17 students.... why not call the variable students, or maybe better studentNumber or studentAmount?

Also about the commenting, maybe you allready do this, but you can better make a story in a comment above a function or some tough for loop in stead of writing some small parts behing some code. Do your outline first (in comments) and then start programming.

Don't use strange numbers.
Rather make this code:
int maxStudents = 17;
int minStudents = 3;
for(int studentNr = minStudents; studentNr < maxStudents; studentNr++);

than
for(int studentNr = 3; studentNr< 17; studentNr++);



But ontopic:
What kind of errors do you get?
I think you can't switch case with strings. It's only for numeric types like byte, int etc., at least I think so.

And you miss a lot of ';''s and break
GeneralRe: transfering multi-dimensional array to database Pin
batkaval12-Feb-09 0:00
batkaval12-Feb-09 0:00 
Question.Net Reporting Passing Parameter from Master Report to SubReport Pin
Chetan Patel11-Feb-09 22:29
Chetan Patel11-Feb-09 22:29 
AnswerRe: .Net Reporting Passing Parameter from Master Report to SubReport Pin
Chetan Patel11-Feb-09 22:41
Chetan Patel11-Feb-09 22:41 
GeneralRe: .Net Reporting Passing Parameter from Master Report to SubReport Pin
mctramp16812-Feb-09 14:47
mctramp16812-Feb-09 14:47 
QuestionThe name of file Pin
abbd11-Feb-09 22:03
abbd11-Feb-09 22:03 
AnswerRe: The name of file Pin
Deresen11-Feb-09 22:12
Deresen11-Feb-09 22:12 
GeneralRe: The name of file Pin
abbd11-Feb-09 22:23
abbd11-Feb-09 22:23 
GeneralRe: The name of file Pin
Tom Deketelaere11-Feb-09 22:31
professionalTom Deketelaere11-Feb-09 22:31 
AnswerRe: The name of file Pin
Rob Philpott11-Feb-09 22:26
Rob Philpott11-Feb-09 22:26 
GeneralRe: The name of file Pin
abbd11-Feb-09 23:08
abbd11-Feb-09 23:08 
GeneralRe: The name of file Pin
J4amieC11-Feb-09 23:23
J4amieC11-Feb-09 23:23 
AnswerRe: The name of file Pin
musefan11-Feb-09 23:16
musefan11-Feb-09 23:16 
Questionprogramming parallel port in c# Pin
orked mohamed11-Feb-09 22:02
orked mohamed11-Feb-09 22:02 
AnswerRe: programming parallel port in c# Pin
Dave Kreskowiak12-Feb-09 4:03
mveDave Kreskowiak12-Feb-09 4:03 
GeneralRe: programming parallel port in c# Pin
orked mohamed12-Feb-09 4:34
orked mohamed12-Feb-09 4:34 
GeneralRe: programming parallel port in c# Pin
Dave Kreskowiak12-Feb-09 11:28
mveDave Kreskowiak12-Feb-09 11:28 
GeneralRe: programming parallel port in c# Pin
orked mohamed13-Feb-09 2:31
orked mohamed13-Feb-09 2:31 

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.