如何得到listbox的里的值

pyl 2000-12-28 10:17:00
双击listbox如何根据listbox1的itemindex得到listbox中的值
...全文
112 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
GoodHope 2000-12-29
  • 打赏
  • 举报
回复
ListBox1.Items[ListBox1.ItemIndex]就可以了
KAMI 2000-12-29
  • 打赏
  • 举报
回复
同意hank.
Hank 2000-12-29
  • 打赏
  • 举报
回复
nononono的方法最好!
ListBox1.Items.Strings[ListBox1.ItemIndex]
帮助里面不是有吗?
The_east_key 2000-12-29
  • 打赏
  • 举报
回复
建议您访问www.etechbase.net/tech,里面有很多资料,也许可以解决您的问题。
访问http://168.168.18.11:81/etechbase/advsearch.php将您的问题输入查询内容框,选择不同的精确程度,即可以找到你所需要的答案。效果还是可以的。
sodawater 2000-12-28
  • 打赏
  • 举报
回复
非常简单!!!
int itemindex;
itemindex=listbox.GetCurSel;
CString string;
listbox.GetText(itemindex,string)



nononono 2000-12-28
  • 打赏
  • 举报
回复
ListBox1.Items.Strings[ListBox1.ItemIndex]
nononono 2000-12-28
  • 打赏
  • 举报
回复
ListBox1.Items.Strings[itemindex]

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧