I want to call custom method of WinForm App using its process
Process process = Process.GetCurrentProcess();
process.Test();
Where is
public partial class FormMain : Form
{
public void Test()
{
// Do something
}
}
Is it possible todo?
Or let's say to call some method o fthe app if we now its process Id and so able to get the current process?