Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anonymous Methods Pin
Pete O'Hanlon26-Oct-06 6:42
mvePete O'Hanlon26-Oct-06 6:42 
GeneralRe: Anonymous Methods Pin
ednrgc26-Oct-06 6:58
ednrgc26-Oct-06 6:58 
GeneralRe: Anonymous Methods Pin
mohanlon26-Oct-06 8:37
mohanlon26-Oct-06 8:37 
GeneralRe: Anonymous Methods Pin
mohanlon26-Oct-06 8:49
mohanlon26-Oct-06 8:49 
Questionusing stringbuilder Pin
DownBySpj26-Oct-06 3:20
DownBySpj26-Oct-06 3:20 
AnswerRe: using stringbuilder Pin
ednrgc26-Oct-06 4:12
ednrgc26-Oct-06 4:12 
AnswerRe: using stringbuilder Pin
Pete O'Hanlon26-Oct-06 6:44
mvePete O'Hanlon26-Oct-06 6:44 
QuestionStreamReader problem Pin
Tavbi26-Oct-06 3:08
Tavbi26-Oct-06 3:08 
Hi,

In code below I convert string to stream and now I have problem.
The value of stremReader.Readline() is never null. What I do wrong?



            byte[] bytes = System.Text.Encoding.ASCII.GetBytes(stringToPrint);<br />
            MemoryStream stream = new MemoryStream(bytes);<br />
<br />
            StreamReader strReader = new StreamReader(stream);<br />
                while (currentLine < linesPerPage)<br />
                {<br />
                    lineText = strReader.ReadLine();<br />
                    if (lineText == null)   // PROBLEM - never null<br />
                        break;<br />
<br />
.... more code<br />


thanks
AnswerRe: StreamReader problem Pin
Andrew Rissing26-Oct-06 3:17
Andrew Rissing26-Oct-06 3:17 
GeneralRe: StreamReader problem Pin
Tavbi26-Oct-06 20:44
Tavbi26-Oct-06 20:44 
GeneralRe: StreamReader problem Pin
Andrew Rissing27-Oct-06 3:30
Andrew Rissing27-Oct-06 3:30 
AnswerRe: StreamReader problem Pin
ednrgc26-Oct-06 3:20
ednrgc26-Oct-06 3:20 
GeneralRe: StreamReader problem Pin
Tavbi26-Oct-06 20:38
Tavbi26-Oct-06 20:38 
QuestionMaking desktop application resolution independent? Pin
Mridang Agarwalla26-Oct-06 2:43
Mridang Agarwalla26-Oct-06 2:43 
AnswerRe: Making desktop application resolution independent? Pin
Pete O'Hanlon26-Oct-06 4:34
mvePete O'Hanlon26-Oct-06 4:34 
QuestionCreating Setup Pin
Jad Jadallah26-Oct-06 2:21
Jad Jadallah26-Oct-06 2:21 
Questionmultithreaded GUI Pin
Polar2226-Oct-06 1:41
Polar2226-Oct-06 1:41 
AnswerRe: multithreaded GUI Pin
billard26-Oct-06 1:52
billard26-Oct-06 1:52 
GeneralRe: multithreaded GUI Pin
Polar2226-Oct-06 1:56
Polar2226-Oct-06 1:56 
AnswerRe: multithreaded GUI Pin
ednrgc26-Oct-06 3:27
ednrgc26-Oct-06 3:27 
QuestionConvert Graphics to Image Pin
topcatalpha26-Oct-06 1:36
topcatalpha26-Oct-06 1:36 
AnswerRe: Convert Graphics to Image Pin
topcatalpha26-Oct-06 22:20
topcatalpha26-Oct-06 22:20 
Questionregular expression validator Pin
vijeta_r26-Oct-06 1:16
vijeta_r26-Oct-06 1:16 
AnswerRe: regular expression validator Pin
Guffa26-Oct-06 1:38
Guffa26-Oct-06 1:38 
AnswerRe: regular expression validator Pin
NTSubuu22-May-12 19:28
NTSubuu22-May-12 19:28 

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.