>It doesn't work ...
>I want event, which fired when ComPort receive data. I do it with timers yet, but I need other method.
>Pavel
The OnComm event fires when data is received. If you add code to the OnCOmm event, it will execute when the event fires. You can add code to log information or whatever. You should also call the Input method when the event fires to empty the input buffer.
You can add the code to a subclass of the ActiveX control or if you drop the control directly on a form, in the OnComm event in the form designer.
If the event is not firing, most likely data is not reaching the control.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao