Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: Count lines in rtf files with c# Pin
led mike13-Mar-08 4:20
led mike13-Mar-08 4:20 
GeneralRe: Count lines in rtf files with c# Pin
panoskatws13-Mar-08 7:41
panoskatws13-Mar-08 7:41 
GeneralRe: Count lines in rtf files with c# Pin
leppie13-Mar-08 4:20
leppie13-Mar-08 4:20 
QuestionRe: Count lines in rtf files with c# Pin
panoskatws13-Mar-08 7:53
panoskatws13-Mar-08 7:53 
GeneralRe: Count lines in rtf files with c# Pin
led mike13-Mar-08 8:02
led mike13-Mar-08 8:02 
GeneralRe: Count lines in rtf files with c# Pin
leppie13-Mar-08 8:21
leppie13-Mar-08 8:21 
GeneralRe: Count lines in rtf files with c# Pin
Lutosław13-Mar-08 9:05
Lutosław13-Mar-08 9:05 
GeneralSaving Listview into a text file.. Pin
ptr2void13-Mar-08 3:27
ptr2void13-Mar-08 3:27 
I am having problems with saving listview items into a text file..
Here is my code:

<br />
<br />
StringBuilder sb = new StringBuilder();<br />
             <br />
             for each (ListViewItem lvi in lstbox.Items)<br />
             {<br />
                 sb.Append(lvi.Text);<br />
                 sb.Append(Environment.NewLine);<br />
             }<br />
<br />
System.IO.StreamWriter sw = new System.IO.StreamWriter(saveSearch.FileName);<br />
                     for (int i = 0; i < lstbox.Items.Count -1 ; i++)<br />
                         sw.WriteLine(sb.ToString());<br />
                     sw.Close();<br />
<br />



But this is only showing the first column header..
I have five colums headers..
How to save all???

Som

GeneralRe: Saving Listview into a text file.. Pin
phannon8613-Mar-08 3:55
professionalphannon8613-Mar-08 3:55 
GeneralRe: Saving Listview into a text file.. Pin
Simon P Stevens13-Mar-08 4:00
Simon P Stevens13-Mar-08 4:00 
GeneralRe: Saving Listview into a text file.. Pin
phannon8613-Mar-08 4:02
professionalphannon8613-Mar-08 4:02 
GeneralRe: Saving Listview into a text file.. Pin
Simon P Stevens13-Mar-08 9:42
Simon P Stevens13-Mar-08 9:42 
GeneralRe: Saving Listview into a text file.. Pin
Simon P Stevens13-Mar-08 3:55
Simon P Stevens13-Mar-08 3:55 
GeneralRe: Saving Listview into a text file.. Pin
MuhammadFaisal13-Mar-08 4:30
MuhammadFaisal13-Mar-08 4:30 
GeneralRe: Saving Listview into a text file.. Pin
ptr2void13-Mar-08 18:33
ptr2void13-Mar-08 18:33 
GeneralRe: Saving Listview into a text file.. Pin
ptr2void13-Mar-08 18:34
ptr2void13-Mar-08 18:34 
GeneralRe: Saving Listview into a text file.. Pin
ptr2void13-Mar-08 18:56
ptr2void13-Mar-08 18:56 
Questionload gif image Pin
asma_panjabi13-Mar-08 3:04
asma_panjabi13-Mar-08 3:04 
GeneralRe: Display gif image in picture box Pin
Martin#13-Mar-08 3:20
Martin#13-Mar-08 3:20 
GeneralRe: Display gif image in picture box Pin
Parwej Ahamad13-Mar-08 3:27
professionalParwej Ahamad13-Mar-08 3:27 
GeneralRe: Display gif image in picture box Pin
asma_panjabi13-Mar-08 21:30
asma_panjabi13-Mar-08 21:30 
GeneralRe: Display gif image in picture box Pin
asma_panjabi14-Mar-08 0:28
asma_panjabi14-Mar-08 0:28 
GeneralRe: Display gif image in picture box Pin
Parwej Ahamad14-Mar-08 1:32
professionalParwej Ahamad14-Mar-08 1:32 
GeneralRe: Display gif image in picture box Pin
asma_panjabi14-Mar-08 1:42
asma_panjabi14-Mar-08 1:42 
GeneralRe: Display gif image in picture box Pin
Parwej Ahamad14-Mar-08 1:49
professionalParwej Ahamad14-Mar-08 1:49 

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.