Listbox and mousedown event

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

Guest

Hello,

I have a problem with the MOUSEDOWN eventprocedure in a singleselected listbox of a formular. Ever when I click on an item in the listbox, the MOUSEDOWN eventprocedure runs, and I can selecting whitch mousekey is pressed. So far so good.
My problem is, that I can not read in the procedure the value of the boundet row from the marked line. The result is a "NULL" value, but the line in the listbox is highlighted, also marked. I must click two times, then the procedure returns the result, the value of the boundet row how wished.
I can not understant this. Can anyone help me, please?

Thanks
 
The value isn't selected until you click, which is down AND up. You may be
able to save the value you get for the mouse button and use it in the click
event, where the selected value will be available. I double checked and the
value isn't available in the MouseUp event either, but it is available in
the Click event.

--
Wayne Morgan
Microsoft Access MVP


alphaville said:
Hello,

I have a problem with the MOUSEDOWN eventprocedure in a singleselected
listbox of a formular. Ever when I click on an item in the listbox, the
MOUSEDOWN eventprocedure runs, and I can selecting whitch mousekey is
pressed. So far so good.
My problem is, that I can not read in the procedure the value of the
boundet row from the marked line. The result is a "NULL" value, but the line
in the listbox is highlighted, also marked. I must click two times, then the
procedure returns the result, the value of the boundet row how wished.
 
Back
Top