A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to prevent text cursor from getting out of a text box on an Outlook 2003 form?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 12th 07, 03:13 PM posted to microsoft.public.outlook.program_vba
Carlos
external usenet poster
 
Posts: 1
Default How to prevent text cursor from getting out of a text box on an Outlook 2003 form?

Hello to all,

I have a large text box on a form that is surrounded by other objects.
It's usual users typing text inside this text box and use the keyboard
cursor to navigate through the text. The problem is that when they
reach the top or the bottom of the text box using the up or down arrow
the focus goes away of the text box and switches to other objects
making users to accidentally change other objects values.
Is there a way to force the confining of the cursor to a text box
boundaries?

Thank you very much in advance
Cheers

  #2  
Old July 12th 07, 06:32 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default How to prevent text cursor from getting out of a text box on an Ou

Is this a VBA UserForm or a custom Outlook form? Both support the SetFocus
methods, but the former has more events (i.e. Enter, Exit, etc.) you can trap
to manage interaction with controls. Custom form controls only support the
Click event.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Carlos" wrote:

Hello to all,

I have a large text box on a form that is surrounded by other objects.
It's usual users typing text inside this text box and use the keyboard
cursor to navigate through the text. The problem is that when they
reach the top or the bottom of the text box using the up or down arrow
the focus goes away of the text box and switches to other objects
making users to accidentally change other objects values.
Is there a way to force the confining of the cursor to a text box
boundaries?

Thank you very much in advance
Cheers


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I prevent Outlook inserting line breaks in a plain text? Ernie Gronblom Outlook - Installation 1 October 6th 06 05:30 PM
problem with rich text (HTML)/plain text Jam Sr Outlook Express 2 July 8th 06 01:50 AM
Paste Text into Outlook Email gives icon not text Chad Outlook - General Queries 6 April 26th 06 10:01 PM
Cursor on new message window but no text appears when typed? TommieC Outlook - General Queries 0 March 15th 06 07:13 AM
Change messageBox text when Outlook form field not validated JennD Outlook - Using Forms 0 February 23rd 06 09:17 PM


All times are GMT +1. The time now is 08:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.