Solved

Determining the active control on a custom form

Posted on 2006-11-20
3
205 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 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

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

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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: …

749 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