Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So here's the scenario that I want to do:

A single server laptop and multiple users can connect to it (let's just limit it to 3 for this scenario). There is an application in the user side to connect to the server side. There is also an application in the server side that has a listbox in it. So whenever a user connects, the listbox adds the user's 'name' (e.g. Hello PC), and updates every time a new user connects. How can I make the added items 'clickable' so that I can pop-up a new form whenever I click in the said item? Thanks for any help! :)
Posted
Comments
Nikhil_S 21-Aug-13 3:36am    
Register the Click event against listView1

this.listView1.Click += new System.EventHandler(this.listView1_Click);

And in it's event handler check for listView1.SelectedItems[0]

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900