Return curser to "no focus" state

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My form detail shows a list from a table. In the header there is a combo box
to set a limit on the display. When users open my form there is no focus on
any control. However, after making the combo box selection, the focus stays
on the selection and the cursor blinks. It would look better if the header
could return to a "no focus" state after the combo box was updated. However,
I can't find how to do this. Any suggestions, please?
 
Hi Richard,

From what I recall, you cannot set the focus to the form once it is in
another control. What I have done in the past is created a textbox with no
label, set the width to zero and made the border transparent.

Then in the OnChange event of the combo box you can set the focus to the
textbox (as long as you haven't set it to invisible). If the text box is in
a corner (say, Left=0, Top-0), it is doubtful that anyone would know the
difference.

Probably not the cleanest, but it works.

Lance
 
Excellent idea. I will do that, and thanks.

LTofsrud said:
Hi Richard,

From what I recall, you cannot set the focus to the form once it is in
another control. What I have done in the past is created a textbox with no
label, set the width to zero and made the border transparent.

Then in the OnChange event of the combo box you can set the focus to the
textbox (as long as you haven't set it to invisible). If the text box is in
a corner (say, Left=0, Top-0), it is doubtful that anyone would know the
difference.

Probably not the cleanest, but it works.

Lance
 
Back
Top