473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Getting listbox item doubleclicked when SelectionMode=multi

Visual Studio .NET 2002

I've got an application in which I need to be able to
click on a listbox item to initiate a dialog pertaining to
that item.

I'd like to be able to keep the dialog multi-select, but
the way the listbox seems to be set up in C#, the
SelectedItem member is just the first item in the
collection of all selected items, and it may not be the
item you actually clicked if many items are selected. I
need to isolate the item that is actually clicked, whether
other items are selected or not.

I can't seem to find a way to get the index or text of the
item i actually clicked. I'm sure it is passed in the
EventArgs, but I checked this in debug and couldn't find
anything being passed in.

Any help would be very very appreciated!
E

Nov 15 '05 #1
0 1340

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul T. Rong | last post by:
I have a listbox (of product names) control on my form. I want to pass the selected item (a product name) to a subform, and the product unitprice should apear automatically next to the product name...
0
by: Bruce | last post by:
Is there any way to determine a registry key's type (DWORD, string, multi-string, etc.) when using the RegistryKey class to read keys? Bruce
2
by: bill yeager | last post by:
I need to get the SelectedValue of each item selected in a multi-selection listbox. I have the following code, but it just returns me the SelectedValue of ONLY the first item selected in the list:...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
4
by: zdrakec | last post by:
Hello all: I have two listboxes on a webform, the user selects items from the first (which is, naturally, multi-select), and clicks a button that will copy the selected items into the second...
0
by: Allen Maki | last post by:
Hi everybody, I appreciate if someone give me a help. When I used the 2 following lines in a simple code, the code will compile with no error:
2
by: jimb20 | last post by:
ive looked for this and the basic code for inputs but it doesnt have anything about this example: say my file looks like this ------------- yes no 1 14 -------------
6
by: probashi | last post by:
Hi, Issue: After post back selected item of a list box is getting out of focus (when it contains more items than it's size). I have a List Box in an ASPX page. I select an item from the...
1
by: gayano | last post by:
HI all, I have 2 forms 1. MainForm 2. SubForm Then I have a listbox in the subform and textbox in the mainform. (when i click on the listbox item) (i dont want multi selections) I want...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.