View Single Post
Old 07-10-2006, 01:59 PM   #3 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
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...
__________________
Current Project
Redline is offline   Reply With Quote