ListBox_Click event does not work!

P

pApAk

I used ListBox couple of times and each time the click event worked fine,
but in one particular userform the ListBox_click does not work!

However it "works" when i set listbox selected value via code, for example:

ListBox1.Selected(0)=True

but when i click a value on the listbox, the event simply does not "fire"...
I checked this by placing the breakpoints inside of the click event. Of
course, nothing "breaked" because event doesnt fire....

Please help.

Thanks.
 
P

pApAk

One correction:

The event DOES work: but only ONCE, i.e. the first click fires the event but
the following clicks do not...
 
P

pApAk

I solved the problem, but thanks anyway :)

Here is the solution, maybe it could be useful for somebody... I doubt, but
here it is:

Well, i use UserForm.Hide and Show before, i.e. after the click event and
this caused the problem which i solved by setting the
UserForm.ShowModal=False and placing AcFocusCtrl on the userform...
 

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