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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top