I would just hook into the key up event. It will be the last event that
is fired when a key si pressed in the textbox. When you find out that it is
the enter key, you just have to call the GetNextControl method on the
current control to find the next control in the tab order. Then call the
Focus method on that control to set the focus.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<Co**********@al.com> wrote in message
news:cu**********@news7.svr.pol.co.uk...
Hi ,
I did ask before but got no replies.
I have a series of textboxes, In Enter event I need to set the focus to a
different textbox
I am having problems when I set focus within the Textbox Enter event.
It is looping thru the events.
Does anyone know how I can set focus to another object when the Textbox
has
received focus either by keyboard or mouse event.
THANK YOU.