Click here to Skip to main content
15,891,689 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which button was pressed... Pin
Csharp™11-Aug-03 0:01
Csharp™11-Aug-03 0:01 
GeneralRe: Which button was pressed... Pin
Csharp™11-Aug-03 0:57
Csharp™11-Aug-03 0:57 
GeneralRe: Which button was pressed... Pin
eggie511-Aug-03 10:31
eggie511-Aug-03 10:31 
Generalreading serialized java Hashtable Pin
misterbear10-Aug-03 21:07
misterbear10-Aug-03 21:07 
GeneralRe: reading serialized java Hashtable Pin
Frank Olorin Rizzi11-Aug-03 1:42
Frank Olorin Rizzi11-Aug-03 1:42 
GeneralRe: reading serialized java Hashtable Pin
Heath Stewart11-Aug-03 2:34
protectorHeath Stewart11-Aug-03 2:34 
GeneralRe: reading serialized java Hashtable Pin
misterbear11-Aug-03 4:22
misterbear11-Aug-03 4:22 
GeneralGetting all of the items in a list box.. Pin
eggie510-Aug-03 18:29
eggie510-Aug-03 18:29 
here's the code...

private void menuItem2_Click(object sender, System.EventArgs e)
{
    StreamWriter fout;
    if(this.saveFileDialog1.ShowDialog()==DialogResult.OK)
    {
        fout= new StreamWriter (new FileStream(this.saveFileDialog1.FileName, FileMode.Create));
        <code>fout.Write(this.listBoxLog.Items.ToString());</code>               fout.Close();
    }





}


Now the line in bold...

What would I put to make it write out the whole listBox...

Or would I have to put it in an array or something first...?


/\ |_ E X E GG
GeneralRe: Getting all of the items in a list box.. Pin
Meysam Mahfouzi10-Aug-03 21:12
Meysam Mahfouzi10-Aug-03 21:12 
GeneralRe: Getting all of the items in a list box.. Pin
eggie511-Aug-03 0:21
eggie511-Aug-03 0:21 
GeneralDynamic TextBoxes Pin
deanoA10-Aug-03 16:27
deanoA10-Aug-03 16:27 
GeneralRe: Dynamic TextBoxes Pin
Nick Seng10-Aug-03 17:42
Nick Seng10-Aug-03 17:42 
QuestionCan I make this? Pin
deanoA10-Aug-03 16:02
deanoA10-Aug-03 16:02 
AnswerRe: Can I make this? Pin
Nish Nishant10-Aug-03 16:13
sitebuilderNish Nishant10-Aug-03 16:13 
GeneralRe: Can I make this? Pin
deanoA10-Aug-03 16:25
deanoA10-Aug-03 16:25 
GeneralRe: Can I make this? Pin
Nish Nishant10-Aug-03 17:50
sitebuilderNish Nishant10-Aug-03 17:50 
GeneralRe: Can I make this? Pin
Anonymous10-Aug-03 17:58
Anonymous10-Aug-03 17:58 
GeneralRe: Can I make this? Pin
Nish Nishant10-Aug-03 18:04
sitebuilderNish Nishant10-Aug-03 18:04 
GeneralRe: Can I make this? Pin
Kannan Kalyanaraman10-Aug-03 19:01
Kannan Kalyanaraman10-Aug-03 19:01 
GeneralRe: Can I make this? Pin
Nish Nishant10-Aug-03 23:11
sitebuilderNish Nishant10-Aug-03 23:11 
GeneralRe: Can I make this? Pin
Kannan Kalyanaraman10-Aug-03 23:52
Kannan Kalyanaraman10-Aug-03 23:52 
GeneralMemory Issue Pin
tkemory10-Aug-03 1:58
tkemory10-Aug-03 1:58 
GeneralRe: Memory Issue Pin
tkemory10-Aug-03 2:00
tkemory10-Aug-03 2:00 
GeneralRe: Memory Issue Pin
Ista10-Aug-03 9:57
Ista10-Aug-03 9:57 
Generaltrim byte[] to new size - after socket.receive Pin
MeisterBiber9-Aug-03 23:27
MeisterBiber9-Aug-03 23:27 

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.