Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I programmatically select an item in a listbox? 1

Status
Not open for further replies.

wraygun

Programmer
Dec 9, 2001
272
US
Hi all,

I've googled 'till my fingers are blue and searched here, but I must be overlooking something.

I have a listbox that is populated with custom data(this is all working fine). When I "left click" on the data it performs an operation (this is working fine as well). However, when I "right click" on item in the listbox, I need to select the item under the cursor AND fire the left click event. I would greatly appreciate any tips to get me pointed in the right direction.

Thanks a bunch,
Harold

***You can't change your past, but you can change your future***
 
Thanks Peter! I appreciate it. I was searching after I posted this and had just came up with a solution based on the answer strongm had provided in thread222-788381. I'm also reviewing the material you linked to for any info there that may be useful.

Anyway, thanks again. :)

***You can't change your past, but you can change your future***
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top