PC Review


Reply
Thread Tools Rate Thread

Capture Enter in textbox

 
 
=?Utf-8?B?RkNsaWZ0b24=?=
Guest
Posts: n/a
 
      14th Mar 2007
I would like to make it so that when a user presses enter in a single line
textbox, the textbox value gets written into some other place and the focus
ends up back in the textbox. I could do all that if I could capture the
Enter, but I don't see a way to do that. Any ideas?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      14th Mar 2007
Look at the keydown or keyup events in a textbox from the control toolbox
toolbar.

You don't say where the textbox is, so make sure you read the help on these
events. (such as cautions for a userform with a commandbutton set to true
for the default property).

--
Regards,
Tom Ogilvy




"FClifton" wrote:

> I would like to make it so that when a user presses enter in a single line
> textbox, the textbox value gets written into some other place and the focus
> ends up back in the textbox. I could do all that if I could capture the
> Enter, but I don't see a way to do that. Any ideas?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want Enter to put CR in Textbox (not just CTRL-Enter) =?Utf-8?B?cm9hZGtpbGw=?= Microsoft Excel Programming 7 11th Oct 2007 10:26 PM
Capture ENTER =?Utf-8?B?RWQ=?= Microsoft Excel Programming 3 7th Oct 2005 10:07 PM
Capture Enter Key in ASP.NET ewillyb@gmail.com Microsoft ASP .NET 5 28th Jul 2005 06:04 PM
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys Minitman Microsoft Excel Programming 0 22nd Feb 2005 08:50 PM
Enter Day in textbox based on day input in previous textbox Sue M Microsoft Access Forms 1 8th Aug 2003 10:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 PM.