• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Entry and Navigation > 27. Highlight the Active Control

Highlight the Active Control

Provide a visual aid on a busy form by emphasizing the control that has the focus.

As you tab through a form and enter data, it is possible to get lost. The more controls on a form, the more likely this is to occur. This hack shows you how to keep the current entry box highlighted.

“Be Tab-Smart” [Hack #26] shows a way in which users can tab around the form in a sensible manner. That hack works with a little code put into a control’s Exit event. This hack uses the Exit event, as well as the Enter event. In this hack, all controls that accept entry have code in both events.

Figure 3-25 shows the entry form with a border around the First Name entry box. As a user tabs through the form or clicks specific controls, the border will always appear around the active control. The border is displayed on only one control at a time.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint