Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to extract attachments from PST and OST files Pin
Ramin Rahimee19-Apr-09 18:16
Ramin Rahimee19-Apr-09 18:16 
QuestionOptimizing File Copy Time Pin
#realJSOP19-Apr-09 1:47
professional#realJSOP19-Apr-09 1:47 
AnswerRe: Optimizing File Copy Time Pin
Mycroft Holmes19-Apr-09 1:57
professionalMycroft Holmes19-Apr-09 1:57 
AnswerRe: Optimizing File Copy Time Pin
S. Senthil Kumar19-Apr-09 2:00
S. Senthil Kumar19-Apr-09 2:00 
AnswerRe: Optimizing File Copy Time Pin
Luc Pattyn19-Apr-09 2:30
sitebuilderLuc Pattyn19-Apr-09 2:30 
GeneralRe: Optimizing File Copy Time Pin
harold aptroot19-Apr-09 2:58
harold aptroot19-Apr-09 2:58 
Questionhow to scroll the contents of a text file Pin
mist_psycho19-Apr-09 1:10
mist_psycho19-Apr-09 1:10 
AnswerRe: how to scroll the contents of a text file Pin
Luc Pattyn19-Apr-09 1:41
sitebuilderLuc Pattyn19-Apr-09 1:41 
mist_psycho wrote:
while((input=re.ReadLine()) !=null)
{
label1.Text=input;
}


this is reading all text and throwing away all but the last line.

You need to read and store all lines in memory first, in the Load handler. File.ReadAllLines can be used for this.

Then set your Control's Text property to whatever you want it to show; probably do this in the tick handler.

FYI: You could do without the string array, keeping all text inside the Control, but that is much harder to do correctly.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


QuestionHow to retrieve DatabaseObjects ExtentendedProperties ? Pin
hdv21219-Apr-09 0:56
hdv21219-Apr-09 0:56 
AnswerRe: How to retrieve DatabaseObjects ExtentendedProperties ? Pin
Mycroft Holmes19-Apr-09 1:43
professionalMycroft Holmes19-Apr-09 1:43 
GeneralRe: How to retrieve DatabaseObjects ExtentendedProperties ? Pin
hdv21219-Apr-09 2:06
hdv21219-Apr-09 2:06 
GeneralRe: How to retrieve DatabaseObjects ExtentendedProperties ? Pin
Henry Minute19-Apr-09 13:06
Henry Minute19-Apr-09 13:06 
Questionloading form design from xml file Pin
samy10019-Apr-09 0:55
samy10019-Apr-09 0:55 
AnswerRe: loading form design from xml file Pin
Mycroft Holmes19-Apr-09 1:49
professionalMycroft Holmes19-Apr-09 1:49 
AnswerRe: loading form design from xml file Pin
Henry Minute19-Apr-09 13:07
Henry Minute19-Apr-09 13:07 
QuestionBurning text effect in GDI+ Pin
ErezRozn19-Apr-09 0:28
ErezRozn19-Apr-09 0:28 
JokeRe: Burning text effect in GDI+ Pin
Mycroft Holmes19-Apr-09 1:51
professionalMycroft Holmes19-Apr-09 1:51 
GeneralRe: Anyone actualy wants to answer this question? Pin
ErezRozn19-Apr-09 2:06
ErezRozn19-Apr-09 2:06 
GeneralRe: Anyone actualy wants to answer this question? Pin
OriginalGriff19-Apr-09 4:01
mveOriginalGriff19-Apr-09 4:01 
GeneralRe: Anyone actualy wants to answer this question? Pin
ErezRozn19-Apr-09 6:19
ErezRozn19-Apr-09 6:19 
GeneralRe: Anyone actualy wants to answer this question? Pin
Henry Minute19-Apr-09 13:17
Henry Minute19-Apr-09 13:17 
GeneralRe: this example has no source code ... Pin
ErezRozn19-Apr-09 20:22
ErezRozn19-Apr-09 20:22 
Questionregistry operations Pin
shefa' isied19-Apr-09 0:11
shefa' isied19-Apr-09 0:11 
AnswerRe: registry operations Pin
Colin Angus Mackay19-Apr-09 1:06
Colin Angus Mackay19-Apr-09 1:06 
GeneralRe: registry operations Pin
shefa' isied19-Apr-09 1:15
shefa' isied19-Apr-09 1:15 

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.