Snip...
Carlos,
>
>Cetin, in my ignorance, i think with this code you has solved the click event, but not the 'ctrl + click' and 'shift + click' and 'ctrl + shift + click' in order to imitate the behavior of multiselect listbox. I know this is possible using the nshift parameter, but as i said i must to remember the last record selected to select all records between both of them and so on.
Code was a starter and not finished. There was cases ready for shift, ctrl and you could add ctrl+shift. And there is an extra logical besides lSelected, lLastSelected to keep last clicked.
>
>In addition of problems, the images showed in each record may be different. Is this possible in a grid ?. If i use a oleboundcontrol bounded to a general field of a cursor, performance will reduce a lot. Not in a listbox. The application is a documental one. You have folders, sub-folders and in each one of this folders you can have word documents, excel sheets, scanned images etc. So i want to show a different image for each type of document. In addition i want to show the user with a image if the document has notepads or relationed documents etc.
You're right about showing multipl images on a grid in a fast way. But that's the case with listboxes also if ever you could succeed a correct display on a large table. So I think what you want to do might be better with a treeview control.
>
>The problem is biggest than apparience. Isn't it ??
>thanks again.
Yes a big problem. Good luck.
Cetin