Writing a simple TestClient with the Visual Basic SDK |
Top Previous Next |
Private Sub cmdConnect_Click() MyTask.ConnectToServer End Sub
Private Sub cmdSend_Click() MyTask.SendToServer txtSend.Text ' When you click the "Send" command button, this sends ' the contents of the "txtSend" text box to WhiskerServer End Sub
Private Sub Mytask_Info(ByVal InfoMessage As String, ByVal Time As Long) txtInfo.Text = InfoMessage End Sub
Private Sub Mytask_Event(ByVal EventMessage As String, ByVal Time As Long) txtEvent.Text = EventMessage End Sub
Technical note: executable The resultant executable file will run directly on any computer with the SDK installed. Note that whenever you use a control from a .OCX or .DLL file in an EXE, that control must be installed (registered) on the machine you wish to run the program on. See the VB documentation for details about this. The SDK Setup program will register the control for you.
|