?
Solved

Determining the active control on a custom form

Posted on 2006-11-20
3
Medium Priority
?
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

777 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