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] Save Items in Combobox[Solved]

Question[Help] Save Items in Combobox[Solved]

Posts 1–9 of 9 · Page 1 of 1
FA
FatCat00
[Help] Save Items in Combobox[Solved]
Is there a way to save the items currently in a comx using settings?
#1 · 16y ago
NextGen1
NextGen1
Goto Properties / Settings (Your application settings)
[Right click application name in solution explorer, Properties, settings tab)

Saving a single Item

Click the Settings Name and create a new setting, Calling it Combobs
Set it's type to string

* Form Load
- Loads saved Values
[php]
Me.ComboBox1.Text = My.Settings.Combobs
[/php]

*Form Closing
-This code sets the settings when the form is closing

Or you can add it as a button event

However you want.

Saving Multiple Items

Create the same setting as above (combobs) Except it's type will be Specialized.StringCollection [system.Collections.Specialized.StringCollection]

* For Load
-Loads Settings

[php]
If My.Settings.combobs IsNot Nothing Then
For Each Item As String In My.Settings.combobs
ComboBox1.Items.Add(Item)
Next
Else
My.Settings.combobs = New System.Collections.Specialized.StringCollection
End If
[/php]

Save Settings, Button or Form Closing

[php]
If ComboBox1.Items.Count > 0 Then
My.Settings.combobs.Clear()
For Each Item2 As String In ComboBox1.Items
My.Settings.combobs.Add(Item2)
Next
My.Settings.Save()
End If
[/php]

#2 · edited 16y ago · 16y ago
FA
FatCat00
Thanx Man, Best Vb Minion
#3 · 16y ago
NextGen1
NextGen1
Not a problem, there is a problem though, I am correcting it in the code
#4 · 16y ago
FA
FatCat00
hehe after debugging theres an error... Lol
For Each item As String In My.Settings.Combobs
#5 · 16y ago
NextGen1
NextGen1
Fixed, Should work fine.


Have Fun

#6 · 16y ago
FA
FatCat00
Works Perfectly, Thanks
#7 · 16y ago
NextGen1
NextGen1
Marked Solved, Left open for other users.
Avoid posting unless under 7 days & Necessary

Glad to help
#8 · 16y ago
ilikewaterha!
ilikewaterha!
Another day saved by NextGen, great explanation.
#9 · 16y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]Save Text to Desktop[Solved]By ppl2pass in Visual Basic Programming
    8Last post 16y ago
  • [Help]Save track bar settings[Solved]By jajarem64 in Visual Basic Programming
    16Last post 16y ago
  • [Help]Save Contents of TextBox[Solved][Closed]By bayley60 in Visual Basic Programming
    2Last post 16y ago
  • [Help]Removing items from ListViewEx? [Solved]By Invidus in Visual Basic Programming
    5Last post 15y ago
  • [Help] Saving resources to disk?[Solved]By master131 in Visual Basic Programming
    3Last post 15y ago

Tags for this Thread

None