public void Test() { var process = WinFormsStarter.Start(@"C:\Users\ishik\Desktop\CoreWinForms\bin\Debug\netcoreapp3.0\CoreWinForms.dll", "CoreWinForms.Program", "Main"); var pipe = new NamedPipeConnection(process); var app = new WindowsAppFriend(pipe); app.Type <Application>().OpenForms[0].Text = "abc"; }
public void Test() { //Start var uri = "http://*****:*****@"c:\Test\CoreForms.exe"; var entry = "CoreForms.Program.Main"; WinFormsStarter.Start(uri, target, entry); using (var app = new DotNetCoreAppFriend(uri)) { var form = app.Type <Application>().OpenForms[0]; form.label1.Text = "Hello Friendly!"; } }