How hide listbox selection?

L

LongWayFromHome

How do I get my listbox to return to its original state after the user clicks
elsewhere? Or, maybe the question is, How do I get it to APPEAR not to have
a selection?

Here is the annoying sequence:

User clicks an item in the listbox.
The item becomes highlighted.
A button offers to toggle an item in Column(2).
User may or may not click the button.
User clicks another control outside the list box.
The other control clearly has the focus.
But the highlight in the list box remains!

I want the highlight to disappear. This is really just a cosmetic issue,
but it annoys me because it looks like my coding didn't finish the job. Even
if I reset the listbox to Null, this does not change.

Suggestions?

Thank you!
 
L

LongWayFromHome

OK. I'm dumb. Really. Setting the listbox to Null does work. Setting
another control to Null just makes it look like your coding didn't finish the
job -- which, in fact, is the case. Sorry for the bother.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top