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 › [TUT] Process List

[TUT] Process List

Posts 1–12 of 12 · Page 1 of 1
Kudi
Kudi
[TUT] Process List
here i show u how to make a process list like this



1. add a listbox to your form
2. double click on the form and insert this code

Code:
 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim p As Process
        For Each p In System.Diagnostics.Process.GetProcesses
            ListBox1.Items.Add(p.ProcessName)
        Next
    End Sub

how to end a proess

1. add a button
2. add a textbox
3. double click on the button and paste this code


Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        On Error Resume Next
        Name = TextBox1.text                'just write notepad or anything without .exe
        For Each ProgrammName In Process.GetProcessesByName(Name)
            ProgrammName.Kill()
        Next
    End Sub
hop you enjoyed
#1 · edited 15y ago · 15y ago
SK
Skinnlaw
Quote Originally Posted by Kudi View Post
here i show u how to make a process list like this



1. add a listbox to your form
2. double click on the form and insert this code

Code:
 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim p As Process
        For Each p In System.Diagnostics.Process.GetProcesses
            ListBox1.Items.Add(p.ProcessName)
        Next
    End Sub

how to end a proess

1. add a button
2. add a textbox
3. double click on the button and paste this code


Code:
]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        On Error Resume Next
        Name = TextBox1.text                'just write notepad or anything without .exe
        For Each ProgrammName In Process.GetProcessesByName(Name)
            ProgrammName.Kill()
        Next
    End Sub
hop you enjoyed
nice, but remove the ] from Private Sub button1_click...

2.Wrong section..
#2 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Code:
 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim p As Process
        For Each p In System.Diagnostics.Process.GetProcesses
            ListBox1.Items.Add(p.ProcessName)
        Next
    End Sub
In-Needed!
#3 · 15y ago
SK
Skinnlaw
Quote Originally Posted by 3Li0 View Post
In-Needed!
What do you mean?
#4 · 15y ago
topblast
topblast
Quote Originally Posted by Skinnlaw View Post
What do you mean?
no one knows
#5 · 15y ago
Jason
Jason
He explicitly declared the p As a "Process" prior to the loop, which is indeed more correct than saying

[highlight=vb.net]
For each p in Process.GetProcesses
[/highlight]

Which only implicitly declares p As process which is a "less favored" programming habit.

Oh yeah, never EVER use On Error Resume Next, it's ungainly.
#6 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Jason View Post
He explicitly declared the p As a "Process" prior to the loop, which is indeed more correct than saying

[highlight=vb.net]
For each p in Process.GetProcesses
[/highlight]

Which only implicitly declares p As process which is a "less favored" programming habit.

Oh yeah, never EVER use On Error Resume Next, it's ungainly.
In 3 guys, only 1 () can understand me
#7 · 15y ago
Jason
Jason
Quote Originally Posted by 3Li0 View Post
In 3 guys, only 1 () can understand me
I did say you were wrong though lol.

Also, it's "unneeded" not "in-needed"
#8 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Jason View Post


I did say you were wrong though lol.

Also, it's "unneeded" not "in-needed"

NOOOOOOOO! Now the other guys will think that I'm dumb :'(
Well in-needed, unneeded, wtf? We aren't in my class while we're learning english.... (Thx to god we aren't). I think that peeps can understand what i said...and...Why me wrong?
#9 · 15y ago
Jason
Jason
Quote Originally Posted by 3Li0 View Post

NOOOOOOOO! Now the other guys will think that I'm dumb :'(
Well in-needed, unneeded, wtf? We aren't in my class while we're learning english.... (Thx to god we aren't). I think that peeps can understand what i said...and...Why me wrong?
You said that he had no need to explicitly declare "p" as a process before using it in the loop like this:

[highlight=vb.net]
For each p in Process.GetProcesses
[/highlight]

Which would mean p was only implicitly declared as a process, it's always better to make any and all declarations explicit as it allows you to keep track of types, and ensures you don't get any invalid type conversions at runtime.

Either of the following are valid and explicit declarations for a For-Each loop:

[highlight=vb.net]
'Option number one:
Dim p As Process
For each p in Process.GetProcesses
'lalala
Next p

Option number two:
For each p As Process in Process.GetProcesses
'lalala
Next
[/highlight]

If you turn on Option Strict, it will disallow implicit declarations.
#10 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Jason View Post


You said that he had no need to explicitly declare "p" as a process before using it in the loop like this:

[highlight=vb.net]
For each p in Process.GetProcesses
[/highlight]

Which would mean p was only implicitly declared as a process, it's always better to make any and all declarations explicit as it allows you to keep track of types, and ensures you don't get any invalid type conversions at runtime.

Either of the following are valid and explicit declarations for a For-Each loop:

[highlight=vb.net]
'Option number one:
Dim p As Process
For each p in Process.GetProcesses
'lalala
Next p

Option number two:
For each p As Process in Process.GetProcesses
'lalala
Next
[/highlight]

If you turn on Option Strict, it will disallow implicit declarations.
yea.?
#11 · 15y ago
Jason
Jason
Quote Originally Posted by 3Li0 View Post
yea.?
Spam less please.
#12 · 15y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Tags for this Thread

None