craigsboyd
IS-IT--Management
I just had the weirdest thing happen in one of my programs...I had this form with a bunch of readonly controls on it and when the user clicks the New button it is suppose to do a few things and then set focus to the first textbox...well it kept setting focus to this combobox right under the text box...but when i debugged the problem was solved...so finally i put a doevents() into the code just before calling txtFirst.setfocus() and it worked...I guess VFP was getting ahead of itself and the combobox had already dropped its readonly status while the textbox hadn't yet...though their readonly properties were called chronologically txtFirst, cmbSecond and well before the setfocus..at least 1/100 of a milisecond anyways
Anyone venture a guess as to why? Multiple threads maybe? Some type of message Queue switch-a-roo? Slighthaze = NULL