1974maiden
MIS
Hi,
I can read my COMport but I can't seem to display the data in a text box in my WebForm.
'DECLARING
Imports MSCommLib
" "
" "
Protected WithEvents mscomm As New MSCommClass()
'OPEN PORT - WORKS
Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click
With mscomm
.CommPort = 1
.Settings = ("9600,N,8,1")
.RThreshold = 1
.PortOpen = True
.RTSEnable = True
.InputMode = InputModeConstants.comInputModeText
.InputLen = 100
End With
lbMsg.Text = "Port open."
End Sub
'READ PORT
Public Sub mscomm_OnComm() Handles mscomm.OnComm
Dim instr As String 'works fine
instr = mscomm.Input 'instr gets populated
txtReceive.Text = instr 'txtReceive.Text gets populated
End Sub
My problem is that I can't see the value in txtReceive.Text on my WebForm !!
Any help is apprecited.
JL
I can read my COMport but I can't seem to display the data in a text box in my WebForm.
'DECLARING
Imports MSCommLib
" "
" "
Protected WithEvents mscomm As New MSCommClass()
'OPEN PORT - WORKS
Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click
With mscomm
.CommPort = 1
.Settings = ("9600,N,8,1")
.RThreshold = 1
.PortOpen = True
.RTSEnable = True
.InputMode = InputModeConstants.comInputModeText
.InputLen = 100
End With
lbMsg.Text = "Port open."
End Sub
'READ PORT
Public Sub mscomm_OnComm() Handles mscomm.OnComm
Dim instr As String 'works fine
instr = mscomm.Input 'instr gets populated
txtReceive.Text = instr 'txtReceive.Text gets populated
End Sub
My problem is that I can't see the value in txtReceive.Text on my WebForm !!
Any help is apprecited.
JL