VB.NET - How To Save A List of Items in a listbox to a Text File - Detailed Tutorial

  Рет қаралды 70,323

Andrews Roy

Andrews Roy

Күн бұрын

Пікірлер: 43
@KingDrekon
@KingDrekon 11 жыл бұрын
I just randomly searched the web for this solution and realized I'm already subbed to you. Great tutorial mate. Worked like a charm.
@iahmad1760
@iahmad1760 2 жыл бұрын
This is awesome, it worked for me. Good work. Thanks!
@1414sami
@1414sami 12 жыл бұрын
pretty cool. My assignment now should be completed after this lovely Video.
@corvettezack
@corvettezack 15 жыл бұрын
a nice thing also would be to once you save (or while its saving) it creates a shortcut to desktop, and/or once saved another form ask you if you want to open tht file or print or wat.
@billrock12
@billrock12 11 жыл бұрын
this guy is awesome. I've learned so much from him!! keep up the good work!!
@2051joha
@2051joha 3 жыл бұрын
it works fine, good explained thanks lot
@SteveyGinge
@SteveyGinge 13 жыл бұрын
You are a VB saviour! Thank you :D
@hetvimodi6137
@hetvimodi6137 10 жыл бұрын
You are a life saver. Thank you soo much for this video. :D
@RavenSaint1
@RavenSaint1 9 жыл бұрын
This helped infinitely. I need to do an extrastep to a writeline method though. Text box is on a form2, while the listbox is on Form1. The listbox populates/creates a *.txt file on load. I need to be able to add the textForm2 to lstBoxForm1 and save to *.txt with a refresh of lstBoxForm1 to show original items with new item added.
@CarlFritz24
@CarlFritz24 10 жыл бұрын
Oh... come on, Andrews... You are new on this ? Man... you are already... a genius !!! Thank you, for your sharing. By the way... could we reverse the process... in order to fill the listbox (musics to play in the WMPlayer application) when we will feel like it ? This way... we could have a "permanent" list of our very special musics... all the time (instead having to reload them all again, every time we load the WMPlayer app) ! I think... YOU CAN ! Hug,
@GhostFire218
@GhostFire218 13 жыл бұрын
@wenceslas15 you have just to count the listbox items, so : textbox.text = listbox.items.count
@JuanGabrielRivera
@JuanGabrielRivera 9 жыл бұрын
And how can i make it to have the program open the text document for me again to keep adding, or managing the list?
@MegaTony1965
@MegaTony1965 14 жыл бұрын
How can i save the items from the List Box to a SQL 2005 database? Thanks
@L3SAN360TUTORIALS
@L3SAN360TUTORIALS 14 жыл бұрын
Not exactly what am looking for.. but maybe you can help me? I want the listbox1 to save on the form itself.. so when i open the form... what i added on the listbox before i closed the form saved. get me???? plz reply ;( get me??
@wenceslas15
@wenceslas15 14 жыл бұрын
Hi, my name is wenceslas and i have a problem. i don't know if you can elp me. i upload a list from a XLS file to put in the list box and i would like the liste boxe to calculate all item inside the liste in another text box. Please help me.Thanks
@cyclotechtwister1997
@cyclotechtwister1997 8 жыл бұрын
Thank you for the video...
@ezekielochami2288
@ezekielochami2288 11 жыл бұрын
thanks man . A great help to me in did.
@ShlomsDaGangSta
@ShlomsDaGangSta 13 жыл бұрын
please help in the text file it wont write them on separate lines so i get one big line of all the entries togeather
@dzoneyGGWP
@dzoneyGGWP 4 жыл бұрын
THANK YOU
@TomLyon44
@TomLyon44 11 жыл бұрын
What if you've got multiple text boxes like First Name, Surname, Mobile, VIP... How would you get them to the list box as one record like John,Smith,042398408,True and save?
@cptray-steam
@cptray-steam 4 жыл бұрын
See what I am trying to do is add file locations to a listbox via an openfiledialog. Edit: Figured it out! Thanks m8! Edit2: I suggest using OBS instead, it will enable recording at a smoother fps.
@ComunidadGLLA
@ComunidadGLLA 15 жыл бұрын
Very useful! Thanks for this :]
@yuriu8
@yuriu8 11 жыл бұрын
hello it very good cod but unfortinutly it overwriwires theoriginal text if i run the comand again how can i revent that ??? cheers
@WoofyDoggy
@WoofyDoggy 13 жыл бұрын
Thanks Worked :)
@GalaxyBalls_
@GalaxyBalls_ 2 жыл бұрын
The save button doesent work, Please help!
@tedbobit2762
@tedbobit2762 8 жыл бұрын
thanks very much
@osamamedhat9687
@osamamedhat9687 8 жыл бұрын
Dim i As Integer w = New IO.StreamWriter("C:\Users\med\Desktop\" & TextBox2.Text & ".txt") For i = 0 To ListBox1.Items.Count - 1 w.WriteLine(ListBox1.Items.Item(i)) Next w.Close() End Sub the "med" is my pc user you can write your pc user and it will start or right click on any icon in desktop choose properites and copy the location id write it here w = New IO.StreamWriter("Location id" & TextBox2.Text & ".txt") You are the best Andrews Roy :)
@chalalaicoson78
@chalalaicoson78 9 жыл бұрын
thank you ^_^
@chaudhary666
@chaudhary666 13 жыл бұрын
Thanks
@leztract15
@leztract15 10 жыл бұрын
Thanks,.
@DrSmoke2104
@DrSmoke2104 12 жыл бұрын
writeline command writes 1 line with the last item with me!!!
@PaperBagMan884
@PaperBagMan884 12 жыл бұрын
You use the same mouse as me.
@manshamujahid
@manshamujahid 3 жыл бұрын
watching after 10 years
@marypoontang6239
@marypoontang6239 12 жыл бұрын
He didn't even show his mouse in the video, you're thinking of the "arrow".
@manshamujahid
@manshamujahid 3 жыл бұрын
oh sorry 11 years, i mean 2021
@PaperBagMan884
@PaperBagMan884 12 жыл бұрын
Actually, it's pointer. Lol, but yeah that's what I meant.
@yusriledmodo6598
@yusriledmodo6598 8 жыл бұрын
Buy Microphone ! .. Noise sound very Sick ROY .
@dimenzio
@dimenzio 8 жыл бұрын
the video is fucking 6 years old -.- idiot
@ghifordmizzard1897
@ghifordmizzard1897 8 жыл бұрын
hahah and load items ? :/
@robertl6711
@robertl6711 11 жыл бұрын
haha anyone else see the twlight down load?
@justsomecommentchannel8602
@justsomecommentchannel8602 7 жыл бұрын
This is pretty much a slideshow
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
VB.NET 2013 - Reading and Writing Text Files
31:59
Nicholas Dingle
Рет қаралды 101 М.
How to Save TextBox data in Visual Basic. Net project
21:46
DJ Oamen
Рет қаралды 102 М.
VB.NET Tutorial 43 - Saving Text Files (Visual Basic 2008/2010)
7:17
TeachMeComputer
Рет қаралды 75 М.
{VB.net} Detailed Listbox Tutorial (Add, Remove, Save, Load)
10:00