Click here to Skip to main content
15,921,279 members
Home / Discussions / C#
   

C#

 
GeneralRe: lost focus Pin
Richard MacCutchan11-Apr-13 23:59
mveRichard MacCutchan11-Apr-13 23:59 
GeneralRe: lost focus Pin
Wayne Gaylard12-Apr-13 0:24
professionalWayne Gaylard12-Apr-13 0:24 
RantConsole Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 3:20
professionalBassam Abdul-Baki11-Apr-13 3:20 
GeneralRe: Console Check (Part II) Pin
Dave Kreskowiak11-Apr-13 5:05
mveDave Kreskowiak11-Apr-13 5:05 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 6:33
professionalBassam Abdul-Baki11-Apr-13 6:33 
GeneralRe: Console Check (Part II) Pin
Dave Kreskowiak11-Apr-13 7:29
mveDave Kreskowiak11-Apr-13 7:29 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 7:49
professionalBassam Abdul-Baki11-Apr-13 7:49 
GeneralRe: Console Check (Part II) Pin
Dave Kreskowiak11-Apr-13 8:05
mveDave Kreskowiak11-Apr-13 8:05 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 9:04
professionalBassam Abdul-Baki11-Apr-13 9:04 
SuggestionRe: Console Check (Part II) Pin
Richard MacCutchan11-Apr-13 6:00
mveRichard MacCutchan11-Apr-13 6:00 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 6:34
professionalBassam Abdul-Baki11-Apr-13 6:34 
SuggestionRe: Console Check (Part II) Pin
Eddy Vluggen11-Apr-13 8:05
professionalEddy Vluggen11-Apr-13 8:05 
GeneralRe: Console Check (Part II) Pin
jschell11-Apr-13 11:10
jschell11-Apr-13 11:10 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 11:30
professionalBassam Abdul-Baki11-Apr-13 11:30 
QuestionC# cystal report using mysql Pin
alam12310-Apr-13 20:40
alam12310-Apr-13 20:40 
AnswerRe: C# cystal report using mysql Pin
Abhinav S10-Apr-13 20:51
Abhinav S10-Apr-13 20:51 
Questioncalculating grades with files and arrays Pin
Magda634710-Apr-13 18:46
Magda634710-Apr-13 18:46 
AnswerRe: calculating grades with files and arrays Pin
PIEBALDconsult10-Apr-13 19:05
mvePIEBALDconsult10-Apr-13 19:05 
AnswerRe: calculating grades with files and arrays Pin
Abhinav S10-Apr-13 19:07
Abhinav S10-Apr-13 19:07 
GeneralRe: calculating grades with files and arrays Pin
Magda634710-Apr-13 19:38
Magda634710-Apr-13 19:38 
AnswerRe: calculating grades with files and arrays Pin
Abhinav S10-Apr-13 19:49
Abhinav S10-Apr-13 19:49 
AnswerRe: calculating grades with files and arrays Pin
V.11-Apr-13 19:57
professionalV.11-Apr-13 19:57 
A few tips.
1. Perhaps it's better to take the logic out of the GradeBook class that contains the main method (= entrypoint of your application.) Mostly Visual Studio will create a file Program.cs with the main method in there.
2. Always use {} even for single line statements after the control statement. (there are some who don't mind this, but I find it best practice to do so)
3. write //end ... (for, if while) after each ending curly bracket (}) that indicates what it ends.
4. in Visual studio you can highlight matching braces. put your cursor on a start bracket ({) and scroll down to the matching one. (if you did #3 you'll occasionally notice that when there are missing brackets you have an //end for written instead of the if statement you started from)
5. I think it's best you take a step back and try to translate the necessary functionality into technical solution (what classes do you need, what methods, write some pseudocode).

In your code after the main method you seem to start a new method, but it is not declared. The part between main and GetStringArray is not what it's supposed to be.

Hope this helps.

Questionsmartcard application Pin
prasannakumarV10-Apr-13 18:21
prasannakumarV10-Apr-13 18:21 
AnswerRe: smartcard application Pin
Abhinav S10-Apr-13 19:44
Abhinav S10-Apr-13 19:44 
Questionfirst row blank when export from gridview to excel with master pages included project Pin
Dhyanga10-Apr-13 10:56
Dhyanga10-Apr-13 10:56 

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.