![]() |
|
[.NET] Have status in a datagridview - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Have status in a datagridview (/showthread.php?tid=5977629) |
Have status in a datagridview - Takehito Morokuzu - Jun 7, 2019 Hi, I've tried searching for this issue but I cannot form my question into words lol Basically, I have a datagridview. the first column will be a name, for example test1. the second column will be a status, in this case running, or not running. I am going to execute a program from my program, it will add a name to the datagridview and while it is running the status will say running. when the program closes I want the status column to change to not running. I also need multiple of these, for example 5 programs running at once. Any help will be appreciated :) RE: Have status in a datagridview - Vyxn - Jun 9, 2019 Run your target process, check the process if running. That's all. RE: Have status in a datagridview - Hawk HF - Jun 9, 2019 It's in C#, but you should be able to make sense of it. I'm sure there's a few unhandled edge cases, but I'll leave those for you to figure out. There's plenty of room for expansion as well. Good luck on your project. 🤝 Launch code: Code private void LaunchProcess(string displayName, string path, params string[] args)Simple wrapper class to store display name and process: Code public class ProcessDataUsage: Code LaunchProcess("Notepad", "notepad.exe"); |