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]Removing item from listbox [solved]

[Help]Removing item from listbox [solved]

Posts 1–10 of 10 · Page 1 of 1
pushdis15
pushdis15
[Help]Removing item from listbox [solved]
i want to delete an item out of the list box when i click a button on that selected item so this is what i did but didnt work ..

Code:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        ListBox1.Items.Remove(ListBox1.SelectedItem)
    End Sub
#1 · 15y ago
master131
[MPGH]master131
Works for me.
#2 · 15y ago
pushdis15
pushdis15
Quote Originally Posted by master131 View Post
Works for me.
damn idk then like i put it in but the button can read it ur sumthen bcz nothing happens when clicked
#3 · 15y ago
topblast
topblast
are you sure it selected? when you press the button?
#4 · 15y ago
pushdis15
pushdis15
yea im sure bcz i got it where when i click it the url plays then i click again on it an its lighted up blue then i click button to clear it but it dont do nothing i dont get no errors either
@topblast
#5 · edited 15y ago · 15y ago
³²³
³²³
Use break points, see if it even goes to the sub

Try this code:
Code:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        if not listbox1.selecteditem = "" then
ListBox1.Items.Remove(ListBox1.SelectedItem)
Else
Msgbox("no selected item!")
End if
End Sub
#6 · edited 15y ago · 15y ago
IA
Iamazn1
Dim index as Integer = listbox1.SelectedIndex
if index <> -1 then
listbox1.items.removeat(index)
end if
#7 · 15y ago
ED
edgareatis
listBox1.Items.Remove(listBox1.SelectedValue);

i think i cant remember havent used list box in ages :P
#8 · 15y ago
pushdis15
pushdis15
already solved thanks tho / close @Jason
#9 · 15y ago
Jason
Jason
Thread marked solved. Bleh this section is in need of a firm scrubbing.
#10 · 15y ago
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Tags for this Thread

None