Hello VB Forums!
I'm struggling to do this thing for a long time, couldn't find a valid solution.
So, here's my thing:
If the user press on "start1" button, will start a process, get it's pid, all good for now, if user is pressing on the second button "start2", starts again another process with the same name (process from 'start1' button still running). So, the problem is which PID corresponds to which process, because I've got start/stop buttons.
I hope someone could help me.
Thank you!
EDIT: I've found a solution, thank you. You can close the thread.
I'm struggling to do this thing for a long time, couldn't find a valid solution.
So, here's my thing:
If the user press on "start1" button, will start a process, get it's pid, all good for now, if user is pressing on the second button "start2", starts again another process with the same name (process from 'start1' button still running). So, the problem is which PID corresponds to which process, because I've got start/stop buttons.
I hope someone could help me.
Thank you!
EDIT: I've found a solution, thank you. You can close the thread.