HoffaFocus
Technical User
According to the VFP-roules it is not allowed to set the focus on another object within the methods when,valid,rangehigh and rangelow. In my applications however it is a need to set focus on the next object as soon as the user has entered (textbox) or coosen (combobox) a value. The most natural way to think in my oppinion is to put the Object.SetFocus in the valid method, but as said this is not allowed. Now I'm spending more time on trying to find a proper way of setting focus on objects then on other tasks within the applications. This is realy frustrating and waste of time. For comboboxes it sometimes works with setfocus in the valid method and sometimes not. To work with Tagindex and Tabstop=.T. do not help in all occasions. Can someone help me where I can find a proper and simple description how to set focus on objects.