我需要一个代码来搜索列表框中的项目 [英] I need a code to search an item in a listbox

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

问题描述


我真的是开发领域的新手,请帮助我开发这种逻辑.

问候,
Gc

Hi,
I am really new to the development field, please help me in developing this logic.

Regards,
Gc

推荐答案

使用ListBox1.Items.IndexOf获取项目的索引,或者使用ListBox1.Items.Contains知道列表框中是否存在该项目.
Use ListBox1.Items.IndexOf to get the index of item or ListBox1.Items.Contains to know whether item is there in listbox.


这篇关于我需要一个代码来搜索列表框中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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