如何以相同的形式在列表框中显示文本框中的特定文本 [英] How to display specific text in textbox which in listbox in the same form

查看:81
本文介绍了如何以相同的形式在列表框中显示文本框中的特定文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我是初学者.

Hii everyone ,
i''m beginner. How to display specific text in textbox which in listbox in the same form.

推荐答案

我认为您需要关注.
您在表单上具有文本框和列表框,您需要在文本框中显示列表框中的文本"

这是解决方案.
i think you need following.
"You have Textbox and listbox on a form, you need to display a text in textbox from listbox"

here is solutions.
Textbox1.Text = ListBox1.Items[2].text //specific item from listbox displayed in textbox


这篇关于如何以相同的形式在列表框中显示文本框中的特定文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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