Advertisement
Advertisement
| 08.11.2008 at 01:27PM PDT, ID: 23639283 | Points: 125 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: |
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
mintCount = 0
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
mintcount = mintcount + 1
TextBox2.Text = mintcount
MSComm1.CommPort = 1
MSComm1.PortOpen = True
If MSComm1.OutBufferCount >0 Then
MsgBox("dg")
Timer1.Enabled = Falses
End If
TextBox3.Text = MSComm1.OutBufferCount
MSComm1.PortOpen = False
End Sub
|