There isn't really any more code. Not any more that is relevant anyway. This is the connect code used to connect to the daemon
Code:
Private Sub cmdConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdConnect.Click
If mGateway.IsConnected Then Return
Me.Cursor = Cursors.WaitCursor
Try
mGateway.Connect()
Catch ex As Exception
lblConnectStatus.Text = "Error in Connection Process"
MsgBox(ex.Message)
End Try
If mGateway.IsConnected Then
lblConnectStatus.Text = "Connected to Daemon"
timerOne.Enabled = True
Else
lblConnectStatus.Text = "Could not connect"
End If
Me.Cursor = Cursors.Default
End Sub
Really though, all I need is to find out if I setup event handling properly. I've never needed to write code for event handling in any language, so I really just winged it...