I have one form (frmMain) that is successfully transmitting and receiving over a serial comport using MSComm1.
I want to open a new form, get an input from the user and send it out the same comport. I may want to keep this new form open for multiple inputs.
I tried using this code in the new form:
frmMain.MSComm1.Output = Chr(11)
frmMain.MSComm1.Output = Chr(Column2Display)
But nothing goes out the port. If I exit (click "X") on the new form I return to the existing form and the port is working fine.
How can I share the port between two forms?
Thanks In Advance,
Pete
I want to open a new form, get an input from the user and send it out the same comport. I may want to keep this new form open for multiple inputs.
I tried using this code in the new form:
frmMain.MSComm1.Output = Chr(11)
frmMain.MSComm1.Output = Chr(Column2Display)
But nothing goes out the port. If I exit (click "X") on the new form I return to the existing form and the port is working fine.
How can I share the port between two forms?
Thanks In Advance,
Pete