Solved

Determining the active control on a custom form

Posted on 2006-11-20
3
194 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
Comment Utility
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
Comment Utility
Thanks for your help. I'll try the help button thing.
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
You're welcome.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Outlook Free & Paid Tools
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
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: …

771 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

10 Experts available now in Live!

Get 1:1 Help Now