列表框中的可点击项c# [英] Clickable items in listbox c#

查看:64
本文介绍了列表框中的可点击项c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这就是我想要做的场景:



单个服务器笔记本电脑和多个用户可以连接到它(在这种情况下我们只需将其限制为3 )。用户侧有一个应用程序连接到服务器端。服务器端还有一个应用程序,其中包含一个列表框。因此,无论何时用户连接,列表框都会添加用户的名称(例如Hello PC),并在每次新用户连接时更新。如何让添加的项目可点击,以便每当我点击上述项目时我都可以弹出一个新表格?谢谢你的帮助! :)

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! :)

推荐答案

检查..

在列表框中选择项目C# [ ^ ]

C#Listbox Item Double点击活动 [ ^ ]

在C#中处理ListBox项目上的双击事件 [ ^ ]
Check..
select item in list box C#[^]
C# Listbox Item Double Click Event[^]
Handling double click events on ListBox items in C#[^]


这篇关于列表框中的可点击项c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆