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]Using my settings

Question[Help]Using my settings

Posts 1–15 of 19 · Page 1 of 2
PP
ppl2pass
[Help]Using my settings
Here is an example.
So right now I have 5 listboxitems. And the listboxitems counter says "5 current Items". When the program updates there is now 2 extra listboxitems, now a total of 7. How do i make it say "2 new items updated"?

Need help on this code.
Code:
MsgBox (My.Settings.Currentlistboxitems - *somethinghere*)
#1 · 16y ago
Invidus
Invidus
Hm. Can they download the updated version? Like for e.g.
[php]If "Http://whereyourupdateis.comrfile" exists Then
MsgBox ("An Update is available. Download will start now.")
Process.Start "Http://whereyourdownloadis.comrfile.rar"
End If[/php]
That will download your update..
#2 · 16y ago
MR
Mr. Lex
Quote Originally Posted by ppl2pass View Post
Here is an example.
So right now I have 5 listboxitems. And the listboxitems counter says "5 current Items". When the program updates there is now 2 extra listboxitems, now a total of 7. How do i make it say "2 new items updated"?

Need help on this code.
Code:
MsgBox (My.Settings.Currentlistboxitems - *somethinghere*)
If all you want it to say is "2 new items updated" then simply do:
Code:
MsgBox ("Two new items updated.", 1, "Updates")
I probably didn't understand the question right, but how is this being updated? Like, you should be able to link the amount of updates into a message box text.
#3 · 16y ago
Invidus
Invidus
Lex, he wants to display the current amount of listboxes, and also how many new ones..
#4 · 16y ago
NextGen1
NextGen1
Now that I understand what he wants, best to learn in a example:

1. Add as many listboxes as you want to a blank form

2. Add a Button

3. Double Click Button


Add this code

[php]
' Declaring ListCount as a Integer = 0 (starting point)
Dim listcount As Integer = 0
' Check every control on the form
For Each contrl As Control In Me.Controls
' If the ctrl is a listbox
If contrl.[GetType]().ToString().ToUpper() = "SYSTEM.WINDOWS.FORMS.LISTBOX" Then
Dim lb As ListBox = DirectCast(contrl, ListBox)
'Count the listboxes
System.Math.Max(System.Threading.Interlocked.Incre ment(listcount), listcount - 1)
End If
Next
'Display the number of listboxes in a message box
MessageBox.Show(listcount.ToString())
[/php]

You can use the same concept with any control, and instead of using a message box, use anything you would like.
#5 · edited 16y ago · 16y ago
Invidus
Invidus
>.O.... What... the heck.. was that...
BRB IMMA GET MY DICTIONARY OUT.
#6 · 16y ago
NextGen1
NextGen1
Hilarious, I notated everything
#7 · 16y ago
Invidus
Invidus
>.< Yet i cannot seem to understand the new language "NG1"...
no its the code i don't understand..
how the *censored* do you remember all that??
#8 · 16y ago
MR
Mr. Lex
He's a pro. I was going to suggest something like that. :P

Also- how do you remember the alphabet?

Years of practice and songs...
#9 · 16y ago
Invidus
Invidus
No. I'm just a child genius .
Yet i need to be an Adult Genius like NextGen to remember all that crap (don't mean it to be crap, just jibberish to me )
#10 · 16y ago
PP
ppl2pass
Quote Originally Posted by NextGen1 View Post
Now that I understand what he wants, best to learn in a example:

1. Add as many listboxes as you want to a blank form

2. Add a Button

3. Double Click Button


Add this code

[php]
' Declaring ListCount as a Integer = 0 (starting point)
Dim listcount As Integer = 0
' Check every control on the form
For Each contrl As Control In Me.Controls
' If the ctrl is a listbox
If contrl.[GetType]().ToString().ToUpper() = "SYSTEM.WINDOWS.FORMS.LISTBOX" Then
Dim lb As ListBox = DirectCast(contrl, ListBox)
'Count the listboxes
System.Math.Max(System.Threading.Interlocked.Incre ment(listcount), listcount - 1)
End If
Next
'Display the number of listboxes in a message box
MessageBox.Show(listcount.ToString())
[/php]

You can use the same concept with any control, and instead of using a message box, use anything you would like.
Is there a way to use my settings?
#11 · 16y ago
Invidus
Invidus
Read the notations ...
#12 · 16y ago
PP
ppl2pass
Is there a way to use my.settings instead?
#13 · 16y ago
Invidus
Invidus
Uhm.. Not for updates.. you'd have to have a FTP host as well.
#14 · 16y ago
PP
ppl2pass
Whats the function to subtract two integers in vb.net?
#15 · 16y ago
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

  • If u are getting DCed using MPGH use these settingsBy brockjames4 in Combat Arms Hacks & Cheats
    25Last post 17y ago
  • Help using hacksBy rigedw00t in Operation 7 General
    0Last post 17y ago
  • Help using haks plsBy mpghisawesome in General Hacking
    0Last post 17y ago
  • [Help] Using dim's from Public FunctionsBy apezwijn in Visual Basic Programming
    4Last post 16y ago
  • Help using Seans chams and i lag?By almia101 in Combat Arms Help
    0Last post 16y ago

Tags for this Thread

None