Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Hisham Younis   on Nov 24 In MS Office Category.

  
Question Answered By: Nina Garcia   on Nov 24

without trying your code, I have another approach to suggest as an
alternative to the KeyDown event, which is to put  a CommandButton on the
form, and set its "Default" property to True (so it gets "Clicked" when the
user presses Enter), and on its Click event  add the TextBox contents  to the
ListBox and then set the focus  back to the TextBox. I THINK this would work.
As long as you don't mind having this new CommandButton there, and/or don't
already have a nother Default CommandButton...

Share: 

 

This Question has 20 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on 2003 - Setfocus on userform Or get search suggestion and latest updates.


Tagged: