Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help] VB.NET 2008 - Saving ListBox Items in Settings

[Help] VB.NET 2008 - Saving ListBox Items in Settings

Posts 1–13 of 13 · Page 1 of 1
Samueldo
Samueldo
[Help] VB.NET 2008 - Saving ListBox Items in Settings
I've set up everything, and on the Settings tab in the Project Properties I've set up some items, and I want to save the items in my ListBox so that on the next load it loads them up. I'm doing this through the Settings on Project Properties. However it denies it, saying:
Value of type 'System.Windows.Forms.ListBox.ObjectCollection' cannot be converted to 'System.Collections.Specialized.StringCollection'.
Any help on this???
#1 · 16y ago
ajvpot
ajvpot
Try the split function.
#2 · 16y ago
LE
LegendaryAbbo
Moved to VB section.
#3 · 16y ago
Blubb1337
Blubb1337
there are enough tutorials about this. use the searchfunction.
#4 · 16y ago
NextGen1
NextGen1
Rules: Display Error
Display Code
Display Code line before
Display Code Line after
Display the code you are using (preferably in it's entirety)

That is going to be the best way we can help you
#5 · 16y ago
Bombsaway707
Bombsaway707
I do not think it is possible to save a listbox contents to my.settings i posted a TUT on saving listbox items to a text file, you can look it up under nextgens tut list
#6 · 16y ago
mnpeepno2
mnpeepno2
Code:
my.settings.blablabla.clear()
for each item in listbox1
my.settings.blablabla.add(item)
next


*note, "blablabla" should be changed to the name of the setting.
/pwnt the minion

also, make sure you add at least one item and then delete it in the setting, or else it will not work.
#7 · edited 16y ago · 16y ago
Bombsaway707
Bombsaway707
Quote Originally Posted by mnpeepno2 View Post
Code:
my.settings.blablabla.clear()
for each item in listbox1
my.settings.blablabla.add(item)
next


*note, "blablabla" should be changed to the name of the setting.
/pwnt the minion

also, make sure you add at least one item and then delete it in the setting, or else it will not work.
Have you tested that method? I don't think that that method works
#8 · 16y ago
mnpeepno2
mnpeepno2
works in the web browser im building, and im 99% finished, just need to add a msgbox.

EDIT: Finished it...
#9 · edited 16y ago · 16y ago
jaake
jaake
lmao thats how badly i must suck... i always tried to save it as a string (never quite worked...)

but hey, im learning
#10 · 16y ago
NextGen1
NextGen1
/pwnt the minion
ha ha , You wish,

His question was easy to understand and straight forward. My concern is getting those into the habit of using the rules, the specific rules I listed above are there to better help the one asking the question, it will allow those answering the questions to better help them, and even faster.

The ListBox item contents are stored in ListBox.ObjectCollection, whenever you use the Items.Add method, you need to use ToString method or CType to convert the connection object to string.

I don't know if your method would work, but if you say it does, i'm sure it will.

the OP will let us know.
#11 · 16y ago
mnpeepno2
mnpeepno2
w8, so u want me to release the web browser?
#12 · 16y ago
NextGen1
NextGen1
Who said that? ...
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • [REQUEST]Save ListBox ItemsBy Prfction in Visual Basic Programming
    2Last post 15y ago
  • [Help]VB.NET (2008)By CptnDutch in Visual Basic Programming
    17Last post 15y ago
  • [Help]Add Listbox Items per line[Solved]By nathanael890 in Visual Basic Programming
    12Last post 15y ago
  • [Help]ListBox.Item.Selected[Solved]By hopefordope in Visual Basic Programming
    6Last post 16y ago
  • My Crosshair Hack made in VB.NET ( 2008)By startdriveturn in Visual Basic Programming
    15Last post 17y ago

Tags for this Thread

None