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
            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

thats connecting to the console application and sending a byte to trigger commands in the console application.

Recommended Answers

All 2 Replies

Ok Ancient Dragon, thanks ill look into it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.