Replace return with tab

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I have a form in c#. I want whenever a user presses return
on a text box, combo box or numericupdown control the key
press will be trapped and replaced with a tab character
forcing the user to move to the next control. I can trap
for the character but can only block the return and then
do a sendkeys for tab.

Surely there is a way to change the character that is
trapped.

Thanks Paul
 
Paul,

The Form's SelectNextControl method should do what you want without
requiring a remapping to the tab character.

HTH,
Nicole
 
Back
Top