Hi!
You can do this in the MouseDown/MouseUp events. When user clicks on the listbox by mouse, these events are fired. When item selected by keyboard, these events do not fire. Just use the flag property in the listbox class, set it to .T. in the MouseDown event, than check where
needed and drop it to .F.
>I have a listbox showing fields from a file. Apparently a listbox can't tell the difference between selecting an item using up and down arrow keys and clicking on an item or pressing enter. I would like to create an action only if an item is deliberately selected, not if it is scrolled through. Any suggestions?
>
>Thanks!
>Allen
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.