{VB.net} Detailed Listbox Tutorial (Add, Remove, Save, Load)

  Рет қаралды 74,412

MrVbdude

MrVbdude

Күн бұрын

Пікірлер: 59
@sliterko9588
@sliterko9588 9 жыл бұрын
I watched at least 10 videos, and you're the one that watches what you work. THANKS THANKS THANKS.
@Wendalizee
@Wendalizee 12 жыл бұрын
You can't really image how helpful you were for me! I had a complete program, but it didn't work because I was writing ' Listbox.items.add ="" ' and THANK GOD I FOUND THIS! I never imagined it was "Listbox.items.add()" jajaja my heroe! Thanks [:
@BorzooMLucky
@BorzooMLucky 13 жыл бұрын
Thank you very much ...I was searching for it a lot bot I didn't find anything useful but your video is awesome. Thanks.
@pacalyps
@pacalyps 9 жыл бұрын
Very good and clear tutorial you made!!!! Keep up the Good Work! If you made a new one please share it with us!
@KillertoastGaming
@KillertoastGaming 8 жыл бұрын
Thanks man, worked for me. I was looking a long time to find a video which shows that and finally found it. But maybe you could describe the commands more detailled next time.
@Hurtcules
@Hurtcules 10 жыл бұрын
This was a very nice lesson. Thank you!
@keropiboy
@keropiboy 12 жыл бұрын
hi is there a way to save / load a list to/from a file but with more than a field? i mean like a bookmark list.. in a listbox we have the title, and in listbox2 we have the url... saving into a file with the format title,url (comma separated) and then when reading from file it takes the part before the comma and fills the listbox1, and it takes the part after the comma and fills listbox2
@Gamerzfanz21
@Gamerzfanz21 10 жыл бұрын
Question (If you still visit your youtube page). How can you get the date to show up in the file name when its saved, and how to load using Opendialog to load a specific dated file I need to be able to save the list, but dated and time, so that its not overwriting the same file (basically create multiple files)
@jitterbuba
@jitterbuba 6 жыл бұрын
Thanks for this. It helped a lot. It works well but I need to have notepad with items that are added open while my windows form application is running otherwise i'm getting error message... app still works and it doesn't crash. Instead of Listbox I've used Combobox for my items. Feels so good when app is working... yes im a noob to code... wish i had started 15 years earlier.
@EatMyVariables
@EatMyVariables 12 жыл бұрын
i think i understand what you mean... this is exactly how my browser is. i used two listboxes, one is hidden. it holds the url.. the other listbox our names i created for the saved url's.. and when you click the selectedindex of them.. they both select the same index.. and navigate. check out my vb.net playlist. ill put two tutorials up today for you. how to do that and how to use the listbox my.settings.
@Digit4l404
@Digit4l404 8 жыл бұрын
Hey there I want to create a drop down listview box for example if I click on a item a box will appear at the bottom with the information also add couple other things as well
@rabidjamesz
@rabidjamesz 11 жыл бұрын
thank you, this really helped. I was struggling with removing items, but this made my mind open :) by the way, where are you from? if you don't mind me asking
@Hessrs
@Hessrs 13 жыл бұрын
Hey I was wondering, when you add an item to the listbox, how do you make it add them in an order? Like say the first item is "Hello", how would you get it to say "1. Hello" In the listbox, so that it shows the number for each item?
@0100Dreamscape0838
@0100Dreamscape0838 8 жыл бұрын
Hi, tanks for this, i need a specific tips in line with this, how can i get only filename in listbox when im using streamreader way ?
@mrkenzo21
@mrkenzo21 11 жыл бұрын
listbox in vb also can display the serial.printIn in arduino right?? can u teach me the coding?? i just want to display, let say "hello world" in the listbox of vb but i really-really dun know how. i've google the coding but i cannot find it. please help me. i think the coding should be simple since it is just to display whatever in the serial.printIn.
@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
@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??
@slappytheclown4
@slappytheclown4 10 жыл бұрын
Oh man, thanks so much. You helped me big time
@keropiboy
@keropiboy 12 жыл бұрын
yes i have the same thing but it only uses my.settings... i'd like to be able to 'export' and 'import' to/from a file...
@5jef5
@5jef5 12 жыл бұрын
I have 2 errors , it says Peek is not a member and Readline is not a member? what did do wrong? -sorry im just programming in vb.net for a month or 2 , thanks for help!
@pnikola
@pnikola 10 жыл бұрын
That was very usefull to me. Thanks.
@Hugoxl99
@Hugoxl99 11 жыл бұрын
Brandonioproductions (youtube channel) has a tutorial similar to your question. The name of the video is "how to create a student database"
@billwohlers7190
@billwohlers7190 12 жыл бұрын
Be glad to help, but Peek and ReadLine are not members of IO.StreamReader? This is what I assume.
@elinipendomziray1377
@elinipendomziray1377 8 жыл бұрын
i need help what if I need user to type the name for file what do I suppose to do?
@goompjaszczompwonsz8132
@goompjaszczompwonsz8132 9 жыл бұрын
How I can use OpenFileDialog to saving and reading lists?
@MINECRAFTzerack
@MINECRAFTzerack 5 жыл бұрын
There is an error at the this code: While (r.Peek() > -1) It says System.ObjectDisposedException "Cannot read from a closed TextReader"
@Alex-eo5lt
@Alex-eo5lt 4 жыл бұрын
same here man
@sabrinatabeta9064
@sabrinatabeta9064 9 жыл бұрын
Why isn't .Items.Add not working in vb 2013? it debugs and says Compile Error: Method or Data member not found Please reply, I'll need this for my report thank you
@GassedSantos
@GassedSantos 9 жыл бұрын
+Sabrina Tabeta Are you putting for example "Listbox1.Items.Add" or are you just putting "Items.Add"
@PhoenixGaming1
@PhoenixGaming1 13 жыл бұрын
when you delete an item it comes back when you load the program again how do you delete for good/ Thanks
@MrVbdude
@MrVbdude 14 жыл бұрын
@functi0norg Hard to explain and i really don't have VB.net installed on my system right now..! Can make some suggestions though.. 1. I m pretty sure u can't do that..or u prob. can..not that i know of 2. You have to download the file to temp. folder on your system using the my.computer.network.downloadfile(source of the file on the internet, location to save on disk) 3. and then load the data in the listbox..!
@MrVbdude
@MrVbdude 14 жыл бұрын
@lesanDOTvbnet I know exactly what u mean....look up on google for more info abt the following codes: My.settings.save My.settings.reload() Look on google and u will get ur answer...put this in form.closing and in form.load event..! to save items in listbox1 for next time use..u might have to add additional code bt u definitely have to use the code above for it to work correctly..! Thanks and don't forget to subscribe =D
@AutisticTurdle
@AutisticTurdle 9 жыл бұрын
I was wondering if you could help me its saying i need a WithEvents Error
@DrSmoke2104
@DrSmoke2104 12 жыл бұрын
when I put ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1 I get this: InvalidArgument=Value of '3' is not valid for 'SelectedIndex'. when I put w.WriteLine(ListBox1.Items.Item(i)) I get only the first value!!
@TomLyon44
@TomLyon44 11 жыл бұрын
What about if I have multiple text boxes, like FirstName, Surname, Mobile, Discount... I want to load e.g. John,Smith,042948494,Yes (from text file) to the list box. Then be able to add new customers that I've written in the text boxes to the listboxes. Then save the whole list box back to the text file. ???
@AussieTerra
@AussieTerra 12 жыл бұрын
yea, just make a new variable as an integer and set it to 0 DIm VariableName as Integer = 0 and type for each item in listbox1.items VariableName = VariableName + 1 Next
@freeIntrotemplate100
@freeIntrotemplate100 11 жыл бұрын
Thank you so much !!!
@calimancil
@calimancil 13 жыл бұрын
Hello Mate.. Merry Christmas.. Can You Please send me the code to align items in a list box... or even better make a video. also if you can i want to tell me a code for numbering items in a list box.. thanks :)
@ScarWars7
@ScarWars7 12 жыл бұрын
Awesome! Helped me sooo much! Thx!
@HethMr
@HethMr 12 жыл бұрын
i wanna list a ID + PW list idk how to do it !
@MrVbdude
@MrVbdude 14 жыл бұрын
@azerbijon123 You're right...! I tried myself and that works fine...thanks for the input..:)
@MatthiWare
@MatthiWare 14 жыл бұрын
How do I save my form into a file like - When u save a paint file into .Bmp etc - A text file into .txt I maded some applications "look at my channel to know what kind of applications" and I wanna save it as something .GAME
@2051joha
@2051joha 8 жыл бұрын
thanks lot, it work perfect.
@nickarevalo366
@nickarevalo366 12 жыл бұрын
Very helpful, thanks!
@LinkinPark24786359
@LinkinPark24786359 10 жыл бұрын
Thanks! MrVbdude. :)
@billrock12
@billrock12 13 жыл бұрын
@NoNChEaT1 I Agree
@1vstutti
@1vstutti 11 жыл бұрын
cmdrem create my an error :(
@BejtushCimili
@BejtushCimili 9 жыл бұрын
thank you for your tuts
@Darkfredor
@Darkfredor 10 жыл бұрын
Beau boulot ,merci
@CarlFritz24
@CarlFritz24 10 жыл бұрын
IF you know HOW to do that... How to do that with photos ?
@Mr22gang
@Mr22gang 12 жыл бұрын
Nice Tut There! Liked!
@Irishsam
@Irishsam 12 жыл бұрын
You would never do this. The ListBox.Items has a count property. MsgBox(Me.ListBox1.Items.Count) This whole video is shocking also. We should be using My.settings not a text file. If we was to visit this way it would be Load a file: Me.ListBox1.Items.AddRange(File.ReadAllLines("FileLocation")) Save Listbox: File.WriteAllLines("FileLocation", Me.ListBox1.Items.Cast(Of String))
@Mr22gang
@Mr22gang 12 жыл бұрын
You'll Have to use Listview then :)
@MrVbdude
@MrVbdude 14 жыл бұрын
@electricpower123 thanks man :)
@goldjasmine5587
@goldjasmine5587 6 жыл бұрын
Thank
@maroon1998
@maroon1998 12 жыл бұрын
FU
How to use a Listbox in VB.NET | Visual Basic .NET Tutorial
13:31
Automate with Rakesh
Рет қаралды 755
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
P50 | List Box to Add, Remove and Clear Items | VB.NET
9:06
Dr. Ankit Verma
Рет қаралды 6 М.
Visual Basic .NET Tutorial 7 - How to use a Listbox in VB.NET
6:49
ProgrammingKnowledge
Рет қаралды 273 М.
Simple VB.net Access connectivity Insert Data and Load to DataGridView
14:58
Learn Software Development
Рет қаралды 781
How to make listbox read a text file in visual basic
6:16
Richard Grant
Рет қаралды 23 М.
How to Save TextBox data in Visual Basic. Net project
21:46
DJ Oamen
Рет қаралды 102 М.
How to save Listview Items in Database- VB.net
9:48
Mike Codz
Рет қаралды 2,4 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН