Saving Combo Box Items to txt

Saving Combo Box Items to txt

Page 1 of 1

1 Replies - 2491 Views - Last Post: 06 August 2009 - 07:40 AM Rate Topic: -----

#1 PPDP  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 38
  • Joined: 14-April 09

Saving Combo Box Items to txt

Posted 06 August 2009 - 07:22 AM

Hi

My download manager records the history of your downloads, The problem is that I can't seem to find a code to save the Items in that combo box in a txt file.

I tried this but did not work:
SaveFileDialog1.ShowDialog(ComboBox1.Items) 

Is This A Good Question/Topic? 0
  • +

Replies To: Saving Combo Box Items to txt

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Saving Combo Box Items to txt

Posted 06 August 2009 - 07:40 AM

Try iterating through the Items collection, writing each item to your text file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1