Just wondering here what is a efficent way to communicate between a Windows Form project and a console application. So far im using Visual Studio 2012 and the System.IO.Pipes namespace,to send bytes between the application.
In the windows form(as client)
Dim pipes As NamedPipeClientStream pipes = New NamedPipeClientStream("A Digital Whirlwind Pipe") Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click pipes.Connect("5000") Try If pipes.IsConnected = True Then TextBox1.Text = "Client connected." End If Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Critical, "A Digital Whirlwind - GUI") End Try pipes.WriteByte(1.0)
thats connecting to the console application and sending a byte to trigger commands in the console application.