03-10-2010, 06:08 PM
I have a listbox as described in this thread... how do I save it so when I come back to the application next time it will load it?
Save Listbox
|
03-10-2010, 06:08 PM
I have a listbox as described in this thread... how do I save it so when I come back to the application next time it will load it?
03-11-2010, 03:42 AM
For saving the listbox items and the passwords, the code is a bit more complicated...
03-11-2010, 08:29 AM
I'm aware of that... do you know how?
03-12-2010, 06:13 AM
OK here it is:
First, I made two subs, the LoadFromFile and SavetoFile customized to fit the needs of the app: Code: Public Sub SaveToFile(ByVal file As String) Code: Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing I hope this code helps and is easy to understand. I have added as many comments as I could.
03-16-2010, 03:23 PM
Wow you rock! I am trying this right now.
04-18-2010, 12:35 AM
(03-12-2010, 06:13 AM)thanasis2028 Wrote: OK here it is: Thanks. |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
TextBox2.Text | Transfer Text to ListBox | Die | 3 | 2,673 |
01-02-2012, 06:09 PM Last Post: AceInfinity |
|
[VB.NET] - ListBox Drag & Drop - [TUT] | Fragma | 10 | 7,732 |
08-25-2011, 07:02 PM Last Post: AceInfinity |
|
Need some help - ListBox Counter | Fragma | 14 | 4,922 |
07-03-2011, 05:33 AM Last Post: H-Q |
|
[Visual Basic] Midnight Club : La Save editor [Source!] | Coding Support | 6 | 3,480 |
06-22-2011, 12:09 PM Last Post: Coding Support |
|
[HELP] Open and save txt file to the internet. | w00pz | 5 | 1,519 |
05-29-2011, 01:34 PM Last Post: w00pz |