Microsoft KB Archive/124237

= VB3 PRB: Can't Receive Data When Using MSCOMM.VBX Control =

Article ID: 124237

Article Last Modified on 10/29/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q124237



SYMPTOMS
While performing serial communications by using the MSCOMM.VBX control, you can get it to connect and send data, but not receive data.



CAUSE
You do not have the correct handshaking enabled.



RESOLUTION
To resolve this problem when using MSCOMM.VBX, set the RTSEnable property to True or add the following line of code to your program when you initialize the MSCOMM control:

Comm1.RTSEnable = True



MORE INFORMATION
The following information on the RTSEnable property comes from the Custom Control Help file (CTRLREF.HLP):

(RTSEnable) Determines whether to enable the Request To Send (RTS) line. Typically, the Request To Send signal that requests permission to transmit data is sent from a computer to its attached modem.

When RTSEnable is set to True, the Request To Send line is set to high (on) when the port is opened and low (off) when the port is closed. The Request To Send line is used in RTS/CTS hardware handshaking. The RTSEnable property allows you to manually poll the Request To Send line if you need to determine its state.

Additional query words: 2.00 3.00 comm communication custom

Keywords: kbprb KB124237

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.