G
Guest
Having trouble determing just how to pass a parameter (object) to the Process
Class' Exited() event?
Too dense to understand the documentation. Please just a simple example.
Using C#, but can understand C or Basic.
Here is my code:
Process p = new Process();
: : :
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.Start();
: : :
void p_Exited(Object sender, EventArgs e)
{
: : :
}
I want to pass an object reference into this Event.
Thanks much.
Class' Exited() event?
Too dense to understand the documentation. Please just a simple example.
Using C#, but can understand C or Basic.
Here is my code:
Process p = new Process();
: : :
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.Start();
: : :
void p_Exited(Object sender, EventArgs e)
{
: : :
}
I want to pass an object reference into this Event.
Thanks much.