ok, u usually select an item from a listbox through a mouse-rightclick
Select = just click on it and it turns highlighted
i want to select an item with left click, is it possible?
Thanks v much for the help =D
Printable View
ok, u usually select an item from a listbox through a mouse-rightclick
Select = just click on it and it turns highlighted
i want to select an item with left click, is it possible?
Thanks v much for the help =D
I hope this is helpful. I am also working with listboxes at the moment and I cannot select items with a right click only with a left click. So I think it is possible to select an item from a listbox with a left click on your mouse.
believe you got your right and left mixed up. ( L | R ) :thumb:Quote:
Originally Posted by Zapper
yea i did get it mixed up, so now, how to select using left click?
Hi
I've set my selectionmode for the listbox to multiselect. So I just click on a few items, using the left mouse button and the selected items gets highlighted. Do you by any chance know how to add the selected items to a database(Access) table?
I think you may be dyslexic as it looks like you've still got them mixed up. You normally select with a LEFT click. If you want to select with a RIGHT click the do as follows:
Handle the MouseClick event.
Determine which button was clicked and where from the 'e' parameter.
Call the IndexFromPoint method to get the index of the item that was clicked.
Call the SetSelected method to select the item at that index.
I really don't need you to insult me, I'm telling you what's happening when I click left. Okay, now I can't seem to select anything when I right click items in the listbox and I can definitely destinguish between (L | R) for your info. If you can't seem to believe that, it's your problem. I'm quite happy with selecting items with the left click and so is my manager, He knows the language and if there was something wrong with selecting items with a left click I'm sure he would've told me. In the future I'll ask him for help. At least he doesn't judge people, and nothing gives you the right to judge either. :mad:
He was talking to Zapper i believe.
Sorry just got a little upset.
I was talking to Zapper. Sorry, should have quoted this:An admission that the first question was the wrong way around and then a repeat of the same question. Should have also included a ;).Quote:
Originally Posted by Zapper
That's ok, I was just confused and felt a little anger when I saw the word
"dyslexic".:thumb: