Solved

Determining the active control on a custom form

Posted on 2006-11-20
3
197 Views
Last Modified: 2012-05-05
I'm writing a form for users to log IT support calls with our help desk. I'm using Outlook 2003.

Some of the text boxes they need to complete need some explanation, so I have added a read only text box at the bottom of the form, and I want this to display tips depending on which text box is active. I.e. as they tab across each text box, the help text at the bottom will change to display the relevant information.

For example, as the user tabs into the "user name" box, the text at the bottom of the screen would read "Please enter your username in the format firstname.surname".

I've used Control Tip Text for the simpler instructions, but some are too verbose for that.

How do I determine which field currently has the cursor? (Or is there a better way of doing this?)
0
Comment
Question by:DeVereGroup
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 17983707
Greetings, DeVereGroup.

I don't think this is possible, or at least not in any documented way inside Outlook.  The problem is that the only event for controls on an Outlook form is the Click event, and some controls don't trigger it either.  VB Script doesn't support the WithEvents statement, so you can't add other events.  Outlook doesn't track the focus as it moves from field to field.  You might be able to use some operating system API call to manage this, but I'm not certain of that.  I'd take a different approach.  I'd add a Help button to the form.  When clicked it can open a help window with help information about all the fields on the current page.

Cheers!
0
 

Author Comment

by:DeVereGroup
ID: 18007911
Thanks for your help. I'll try the help button thing.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 18008015
You're welcome.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
Outlook Free & Paid Tools
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now