L
Laurent
Hi all,
First, I use C# with the .NET Framework 2.0.
I would like in the method OnButtonClick, call the method A.DoSomething but
in a way that executes after
OnButtonClick has finished its execution.
I am looking for something like a PostMessage in Win32 in fact.
How can I do that in C# ?
Class A
{
// may be inheriting from Form too
void DoSomething() { }
}
Class B : Form
{
void OnButtonClick() // for example
{
// call A.DoSomething but do not execute yet
return;
// now it is the time that DoSomething must execute
}
}
Thank,
Laurent
First, I use C# with the .NET Framework 2.0.
I would like in the method OnButtonClick, call the method A.DoSomething but
in a way that executes after
OnButtonClick has finished its execution.
I am looking for something like a PostMessage in Win32 in fact.
How can I do that in C# ?
Class A
{
// may be inheriting from Form too
void DoSomething() { }
}
Class B : Form
{
void OnButtonClick() // for example
{
// call A.DoSomething but do not execute yet
return;
// now it is the time that DoSomething must execute
}
}
Thank,
Laurent