I know it may not make a lot of sense, but Events should call Methods. ================== Event OnData ================== *** ActiveX Control Event *** LPARAMETERS s RETURN THISFORM.onData(s)
================== Method OnData ================== LPARAMETERS s THISFORM.TxtPollData.Value = "Data: "+ S THISFORM.TxtPollData.Refresh *-- Does the form just need to be redrawn? THISFORM.Cls() RETURN If this doesn't clear the problem up: What OS? In the Device manager, does the fingerprint reader appear as a COM port? Or USB device? -----Original Message----- From: [email protected] Sent: Wednesday, February 10, 2010 12:55 PM Hi, I don't think so. Here is the code that runs when a person registers on the fingerprint reader. ================== Event OnData ================== *** ActiveX Control Event *** LPARAMETERS s THISFORM.TxtPollData.Value = "Data: "+ S THISFORM.TxtPollData.Refresh *DOEVENTS && I even tried to execute any pending windows events. RETURN Foxpro does not record all the events and sometimes hangs. When I minimize and maximize the main program window, it starts showing the string event data in my text box. Why Foxpro causing a delay or completely ignores the event? Thanks Naeem > Is it just a refresh problem of the display? > In the end of your code that updates the screen, add a THISFORM.CLS(). > > > [email protected] wrote: >> Hi, >> >> I did that too but same problem. Any idea ? >> >> Thanks >> Naeem >> >>> Have you set the _VFP.Autoyield property to .F. >>> >>> Dave Crozier _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/000501caaa7b$7c14fcd0$743ef6...@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

