Oct 8, 2013 #1 sdocker IS-IT--Management Aug 12, 2010 218 GB Is it possible to have the last control on a form remain in focus when the TAB, DownArrow, Enter ... is pressed? Thanks you, Sam
Is it possible to have the last control on a form remain in focus when the TAB, DownArrow, Enter ... is pressed? Thanks you, Sam
Oct 8, 2013 #2 Mike Lewis Programmer Jan 10, 2003 17,516 Scotland Have you tried putting NODEFAULT in the control's LostFocus? Or, if that doesn't work (I've never tried it), how about THIS.SetFocus in the LostFocus? Give them a try, and report back. Mike __________________________________ Mike Lewis (Edinburgh, Scotland) Visual FoxPro articles, tips and downloads Upvote 0 Downvote
Have you tried putting NODEFAULT in the control's LostFocus? Or, if that doesn't work (I've never tried it), how about THIS.SetFocus in the LostFocus? Give them a try, and report back. Mike __________________________________ Mike Lewis (Edinburgh, Scotland) Visual FoxPro articles, tips and downloads
Oct 8, 2013 #3 Mike Lewis Programmer Jan 10, 2003 17,516 Scotland Another possibility: In the control's Keypress event, test to see if the key is Tab, Enter, DownArrow, etc. If it is, issue NODEFAULT. No doubt others will come up with more ideas. Mike __________________________________ Mike Lewis (Edinburgh, Scotland) Visual FoxPro articles, tips and downloads Upvote 0 Downvote
Another possibility: In the control's Keypress event, test to see if the key is Tab, Enter, DownArrow, etc. If it is, issue NODEFAULT. No doubt others will come up with more ideas. Mike __________________________________ Mike Lewis (Edinburgh, Scotland) Visual FoxPro articles, tips and downloads
Oct 8, 2013 Thread starter #4 sdocker IS-IT--Management Aug 12, 2010 218 GB Hi Mike, Have you tried putting NODEFAULT in the control's LostFocus? Or, if that doesn't work (I've never tried it), how about THIS.SetFocus in the LostFocus? Upvote 0 Downvote
Hi Mike, Have you tried putting NODEFAULT in the control's LostFocus? Or, if that doesn't work (I've never tried it), how about THIS.SetFocus in the LostFocus?
Oct 8, 2013 Thread starter #5 sdocker IS-IT--Management Aug 12, 2010 218 GB Please ignore previous response. It was incomplete. Hi Mike, [b]Have you tried putting NODEFAULT in the control's LostFocus? Or, if that doesn't work (I've never tried it), how about THIS.SetFocus in the LostFocus?[/b] Both responses work. However it also disable the up arrow. In the control's Keypress event, test to see if the key is Tab, Enter, DownArrow, etc. If it is, issue NODEFAULT. This works fine. It was the "NODEFAULT" that I needed. Thanks, Sam Upvote 0 Downvote
Please ignore previous response. It was incomplete. Hi Mike, [b]Have you tried putting NODEFAULT in the control's LostFocus? Or, if that doesn't work (I've never tried it), how about THIS.SetFocus in the LostFocus?[/b] Both responses work. However it also disable the up arrow. In the control's Keypress event, test to see if the key is Tab, Enter, DownArrow, etc. If it is, issue NODEFAULT. This works fine. It was the "NODEFAULT" that I needed. Thanks, Sam