Listbox Save / Load in Settings
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts
Page 1 of 1
Hello guys i need help on how i save and load listbox items in my.settings
the first good answer = 10 C
the first good answer = 10 C
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
You would need a maximum amount of items. As far as I know, you cannot create a new Setting at runtime. But you can use My.Settings and Strings to use the .Split function and remove commas and .Join commas to load into a listbox. I will be back with some code, if I figure it out.
go to settings , make a new specializedstringcollection(you'll need to browse for system.collections.specializedstringcollection)
Code: Select all
load :
For each item as string in listbox1.items
My.Settings.collection.Add(item)
My.settings.save()
next
Code: Select all
I didn't test this but it should work !For each item as string in my.settings.collection
Listbox1.items.add(item)
Next
@GoodGuy17
i see before months code like this
for i = blah blah.listbox(Save)
my.setings.add(i)
listbox1.count -1
i forget it so the code is like this
i see before months code like this
for i = blah blah.listbox(Save)
my.setings.add(i)
listbox1.count -1
i forget it so the code is like this
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
@axel
i got error
Object reference not set to an instance of an object.
i got error
Object reference not set to an instance of an object.
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
CleverBoy wrote:@axelWhere does that appear ?
i got error
Object reference not set to an instance of an object.
and i test it in another way it works but every time i load 1 new item added on the top of items " " on space :S
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
Fix the problem thanks for all
Axel + GoodGuy17
PM with download for 6 credits so you will get 5 c
ok?
LOCK TOPIC
Axel + GoodGuy17
PM with download for 6 credits so you will get 5 c
ok?
LOCK TOPIC
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023