Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnComm event will not fire

Status
Not open for further replies.

GKBray

IS-IT--Management
Jan 14, 2003
51
GB
I have a Magnetic Card reader connected to my PC.

I have a form with mscomm32.ocx on it, and one command button.

The code in my command button reads "Messagebox("Thisform.olecontrol1.input")
When clicked, after a card swipe, this shows my the contents of the input buffer, no probs.

I put similar code into the oncomm event, but no messagebox appears. The oncomm event does not seem to fire.

Any suggestions greatfully received.

Graham

G K Bray Programmer
 
Make sure you are put all settings for COM right, speed, daat bits parity check, stop bit.
Also play with RThreshould, SThreshould, RTSEnambe and DTREnable

Borislav Borissov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top