Click here to Skip to main content
16,016,500 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Enable or disable menu in a form frm another form Pin
Ismael_199926-Aug-24 4:42
Ismael_199926-Aug-24 4:42 
QuestionSystem.* not defined or imported Pin
Pieter Claassens15-Aug-24 4:22
Pieter Claassens15-Aug-24 4:22 
AnswerRe: System.* not defined or imported Pin
Richard MacCutchan15-Aug-24 4:56
mveRichard MacCutchan15-Aug-24 4:56 
GeneralRe: System.* not defined or imported Pin
Pieter Claassens15-Aug-24 5:03
Pieter Claassens15-Aug-24 5:03 
GeneralRe: System.* not defined or imported Pin
Richard MacCutchan15-Aug-24 5:26
mveRichard MacCutchan15-Aug-24 5:26 
GeneralRe: System.* not defined or imported Pin
Richard Andrew x6415-Aug-24 11:21
professionalRichard Andrew x6415-Aug-24 11:21 
GeneralRe: System.* not defined or imported Pin
Richard MacCutchan15-Aug-24 22:13
mveRichard MacCutchan15-Aug-24 22:13 
AnswerRe: System.* not defined or imported Pin
OriginalGriff15-Aug-24 19:17
mveOriginalGriff15-Aug-24 19:17 
To add to what Richard has said, the cause of a syntax error isn't always where the compiler reports a problem - it may be in lines before or even after the report!

For example, an additional "}" can cause some odd errors because the class and / o9r namespace has ben "closed" as far as the compiler is concerned, and it doesn't "know" what to do with your code that follows it.

So when you try to report a problem to us, you need to give us more than just one line and an error message - we need context for that and that means maybe a dozen lines either side.

This may help: How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[^] - it should help you next time you get a compilation error!

And spending a little time learning to understand syntax error messages will save you a huge amount of time in future: you waited at least 1/4 hour for Chris to reply, then your email system probably added another 10 minutes or so, plus the time it took you to type up the question once you had found this site and created an account. Chances are that you could have saved a significant chunk of that time if you knew how to read them!

I'm not saying we don't want to help you fix them - sometimes I can't see my own errors because I read what I meant to write - but fixing syntax errors is part of the job, and if you can't do it for yourself people are going to look at you as a bit weird should you get a job in the industry!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

QuestionCombobox item selection Pin
Member 95057569-Aug-24 22:46
Member 95057569-Aug-24 22:46 
AnswerRe: Combobox item selection Pin
OriginalGriff10-Aug-24 2:30
mveOriginalGriff10-Aug-24 2:30 
QuestionPrintQueueWatch Pin
Jorge Carlos Iglesias Alvarez2-Aug-24 6:44
Jorge Carlos Iglesias Alvarez2-Aug-24 6:44 
AnswerRe: PrintQueueWatch Pin
Richard Andrew x642-Aug-24 7:28
professionalRichard Andrew x642-Aug-24 7:28 
AnswerRe: PrintQueueWatch Pin
OriginalGriff2-Aug-24 19:49
mveOriginalGriff2-Aug-24 19:49 
Questionnetwork change event/Compare Pin
geomeo1232-Aug-24 4:47
geomeo1232-Aug-24 4:47 
AnswerRe: network change event/Compare Pin
RedDk2-Aug-24 8:58
RedDk2-Aug-24 8:58 
QuestionDataGrid - Change column Headers height and row vertical alignment text. Pin
Member 1340835626-Jul-24 7:50
Member 1340835626-Jul-24 7:50 
AnswerRe: DataGrid - Change column Headers height and row vertical alignment text. Pin
Dave Kreskowiak26-Jul-24 13:20
mveDave Kreskowiak26-Jul-24 13:20 
QuestionSqlDataReader with multiple result sets Pin
Richard Andrew x6426-Jul-24 5:07
professionalRichard Andrew x6426-Jul-24 5:07 
AnswerRe: SqlDataReader with multiple result sets Pin
Pete O'Hanlon26-Jul-24 5:32
mvePete O'Hanlon26-Jul-24 5:32 
GeneralRe: SqlDataReader with multiple result sets Pin
Richard Andrew x6426-Jul-24 5:40
professionalRichard Andrew x6426-Jul-24 5:40 
AnswerRe: SqlDataReader with multiple result sets Pin
OriginalGriff26-Jul-24 6:08
mveOriginalGriff26-Jul-24 6:08 
GeneralRe: SqlDataReader with multiple result sets Pin
Richard Andrew x6426-Jul-24 6:39
professionalRichard Andrew x6426-Jul-24 6:39 
QuestionI want to get permission to interact with a file. Pin
Yohan Bischofberger25-Jul-24 9:15
Yohan Bischofberger25-Jul-24 9:15 
QuestionRe: I want to get permission to interact with a file. Pin
Richard MacCutchan25-Jul-24 10:24
mveRichard MacCutchan25-Jul-24 10:24 
AnswerRe: I want to get permission to interact with a file. Pin
charles henington23-Sep-24 9:12
charles henington23-Sep-24 9:12 

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.