在C#中的列表框中编辑项目 [英] edit an item in listbox in c#

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

问题描述


如何在列表框中编辑项目?
reagrds
Bill


How can I edit an item in listbox?
reagrds
Bill

推荐答案

你是什么意思?使项目可编辑,还是仅更改项目?您可以轻松地对其进行更改,只需访问items数组中的项目即可.也许,如果您解释得更好(编辑您的文章)并告诉我们您尝试过的内容,我们可以更具体.
how do you mean ? Make the items editable, or just change an item ? you can change it easy enough, just access the item in the items array. Perhaps if you explain a bit better ( edit your post ) and tell us what you have tried, we can be more specific.



我必须重命名列表框中的项目.
问候
Bill

I have to rename an item in a listbox.
Regards
Bill


在包含列表框的表单的Visual Studio设计器中,右键单击列表框,然后单击编辑项目".除非您正在谈论在运行时执行此操作,否则在这种情况下,您需要更新原始帖子(即,不要发布帖子的答案,而是编辑您的实际问题)以阐明您的意思.
While in the Visual Studio Designer for the form that contains the listbox, right click on the listbox and click "Edit Items". Unless you were talking about doing this at runtime, in which case you need to update your original post (i.e., do not post an answer to your post, but instead edit your actual question) to clarify what you mean.


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

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