[Solved] C#, Winform: How to pass information from one form to another [duplicate]


You have to find the form and call the method, e.g.

using System.Linq;

...

Application.OpenForms
  .OfType<Form1>()     // Among the all opened forms of Form1 type 
  .LastOrDefault()     // Take the last one (or null if there's no such form)
 ?.AfterConnect();     // And call AfterConnect() on it (if the form has been found) 

2

solved C#, Winform: How to pass information from one form to another [duplicate]