J
John D in London, England
I need to hide a control whenever it loses focus. I tried putting a hide
(i.e. .visibile = false) into its onlostfocus handler, but at run time it
complains that you cannot hide a control that has focus. So obviously even
though it is losing focus it actually still has focus when the lostfocus
event occurs.
Is there some other event where I should be putting the hide instruction?
The control (a list box) becomes visible and receives focus when the user
clicks on another specific control, and I want it to disappear whenever the
user clicks outside it. Any suggestions?
(i.e. .visibile = false) into its onlostfocus handler, but at run time it
complains that you cannot hide a control that has focus. So obviously even
though it is losing focus it actually still has focus when the lostfocus
event occurs.
Is there some other event where I should be putting the hide instruction?
The control (a list box) becomes visible and receives focus when the user
clicks on another specific control, and I want it to disappear whenever the
user clicks outside it. Any suggestions?