Click here to Skip to main content
15,905,229 members
Home / Discussions / C#
   

C#

 
GeneralRe: I wish I could ban you.... Pin
Malcolm Smart16-Jul-07 10:06
Malcolm Smart16-Jul-07 10:06 
GeneralRe: I wish I could ban you.... Pin
leckey16-Jul-07 10:37
leckey16-Jul-07 10:37 
AnswerRe: Urgent Help Required Pin
Vasudevan Deepak Kumar16-Jul-07 7:48
Vasudevan Deepak Kumar16-Jul-07 7:48 
AnswerRe: Urgent Help Required Pin
Bert delaVega17-Jul-07 5:12
Bert delaVega17-Jul-07 5:12 
GeneralRe: Urgent Help Required Pin
Paul Conrad23-Dec-07 15:06
professionalPaul Conrad23-Dec-07 15:06 
QuestionHow to call a javascript function onunload Pin
Exelioindia16-Jul-07 3:45
Exelioindia16-Jul-07 3:45 
QuestionCan any one help me with (How to export a gridview to Excel) Pin
ku3_ku16-Jul-07 3:44
ku3_ku16-Jul-07 3:44 
Question5 Errors Pin
Xmen Real 16-Jul-07 3:41
professional Xmen Real 16-Jul-07 3:41 
string seth;
     bool anm, beh, st, en;
     StreamReader a = new StreamReader(".\\Format.cfg");
     while (a.Peek != -1)
     {
         seth = a.ReadLine;
         if (seth.Trim.Length != 0)
         {
             if (seth.Trim = "ABC")
             {
                 anm = true;
             }
             else if (seth.Trim = "XYZ")
             {
                 st = true;
             }
         }

     }

these codes look pretty but have 5 errors
1.Operator '!=' cannot be applied to operands of type 'method group' and 'int'
2.Cannot convert method group 'ReadLine' to non-delegate type 'string'. Did you intend to invoke the method?
3.'string.Trim(params char[])' is a 'method', which is not valid in the given context
4.Cannot assign to 'Trim' because it is a 'method group'
5.Cannot assign to 'Trim' because it is a 'method group'

i tried lots of times and did as i could

i hope here is someone who can solve it
thanks
AnswerRe: 5 Errors Pin
Pete O'Hanlon16-Jul-07 4:02
mvePete O'Hanlon16-Jul-07 4:02 
AnswerRe: 5 Errors Pin
mav.northwind16-Jul-07 5:04
mav.northwind16-Jul-07 5:04 
GeneralRe: 5 Errors [modified] Pin
Xmen Real 16-Jul-07 6:34
professional Xmen Real 16-Jul-07 6:34 
GeneralRe: 5 Errors Pin
Dan Neely16-Jul-07 6:49
Dan Neely16-Jul-07 6:49 
GeneralRe: 5 Errors Pin
Xmen Real 16-Jul-07 18:02
professional Xmen Real 16-Jul-07 18:02 
GeneralRe: 5 Errors Pin
Xmen Real 16-Jul-07 18:39
professional Xmen Real 16-Jul-07 18:39 
GeneralRe: 5 Errors Pin
Pete O'Hanlon17-Jul-07 10:49
mvePete O'Hanlon17-Jul-07 10:49 
GeneralRe: 5 Errors Pin
Xmen Real 17-Jul-07 14:52
professional Xmen Real 17-Jul-07 14:52 
QuestionLaod a Method from a DLL dynamically Pin
thenewbee16-Jul-07 3:09
thenewbee16-Jul-07 3:09 
AnswerRe: Laod a Method from a DLL dynamically Pin
originSH16-Jul-07 4:23
originSH16-Jul-07 4:23 
GeneralRe: Laod a Method from a DLL dynamically Pin
thenewbee16-Jul-07 18:55
thenewbee16-Jul-07 18:55 
GeneralRe: Laod a Method from a DLL dynamically Pin
originSH17-Jul-07 0:12
originSH17-Jul-07 0:12 
QuestionDownload files from FTP Pin
Sallu174916-Jul-07 2:31
Sallu174916-Jul-07 2:31 
AnswerRe: Download files from FTP Pin
Le centriste16-Jul-07 2:44
Le centriste16-Jul-07 2:44 
GeneralRe: Download files from FTP Pin
Sallu174916-Jul-07 3:42
Sallu174916-Jul-07 3:42 
GeneralRe: Download files from FTP Pin
Le centriste16-Jul-07 3:45
Le centriste16-Jul-07 3:45 
AnswerRe: Download files from FTP Pin
Scott Dorman16-Jul-07 5:10
professionalScott Dorman16-Jul-07 5:10 

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.