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 › C# Programming › c# help (process list)

c# help (process list)

Posts 1–9 of 9 · Page 1 of 1
XxTylerxX
XxTylerxX
c# help (process list)
Can somebody help me with a Process List in c# winforms....like Have a listview that shows all the processes thats all i need.
#1 · 16y ago
NextGen1
NextGen1
One sec, I will write it.

Going to properly convert my tut without errors, This is my 64 bit test machine, so give me a little bit to download C# on here.
#2 · edited 16y ago · 16y ago
B1ackAnge1
B1ackAnge1
Just take the output from Process.GetProcesses() and either bind it to your listview or manually iterate over it with a foreach loop to do some processing etc while you're adding them. something like:

Code:
using System.Diagnostics;
...

Process[] processList = Process.GetProcesses();
foreach(Process p in processList)
{
     ListViewItem lvi  = new ListViewItem();
     lvi.Text = p.ProcessName;
     lvi.Tag = p.Id;
     processListView.Items.Add(lvi);
}
#3 · 16y ago
why06
why06
Code:
foreach(Process p in processList)
Do you really write it like that in C# o_O?
#4 · 16y ago
Hell_Demon
Hell_Demon
Quote Originally Posted by why06 View Post
Code:
foreach(Process p in processList)
Do you really write it like that in C# o_O?
i know rite.. Looks like vb D=
#5 · 16y ago
B1ackAnge1
B1ackAnge1
Quote Originally Posted by why06 View Post
Code:
foreach(Process p in processList)
Do you really write it like that in C# o_O?
Eitherway - this also works:
Code:
for(int i = 0 ; i < processLis*****unt; i++)
{
   processList[i].Id; //etc etc
}
But if you have no need to know the index the foreach iterator is simpler and more elegant
#6 · 16y ago
NextGen1
NextGen1
damn it, I was writing up a conversation of my tut

NextGen1 tut = fails

rage quits!
#7 · 16y ago
why06
why06
Quote Originally Posted by B1ackAnge1 View Post
Eitherway - this also works:
But if you have no need to know the index the foreach iterator is simpler and more elegant
I sorta disagree, but thx 4 info.
Lol sry Next BA's got this.
#8 · 16y ago
B1ackAnge1
B1ackAnge1
Lol Why. yeah it's no plain old C++ but you get used to it. But that's why there's multiple ways to do it so you can pick what you like Compared to Template classes or STL type iterators etc in C++, C#'s way of dealing with this stuff like generics actually is I think quite a bit nicer, though I miss my multiple inheritance at times. (not supported in C#, though you can still implement multiple interfaces in one class so it 'sorta' lets you do it).

Of course the downside of using a foreach loop is that you can't change your collection you're iterating over (delete/add items, but you can still modify the individual objects) while inside it, so it has it's place , but usually only for 'readonly/forwardonly' operations.

Just for fun I should do write a tut that's 'C++ vs C#' on some common concepts etc.
#9 · 16y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • help proxy listBy Mike273 in Spammers Corner
    3Last post 8y ago
  • [HELP]weapons listBy jeffrey1 in WarRock - International Hacks
    1Last post 18y ago
  • [Request]How to make a process list in visual basic 2008By trevor206 in Visual Basic Programming
    2Last post 17y ago
  • Process listBy tpw1314 in Blackshot Hacks & Cheats
    0Last post 17y ago
  • Hide from process listBy superHackz in Visual Basic Programming
    1Last post 18y ago

Tags for this Thread

None