如何使用vb 6.0在form2中显示form1到listbox中的所有列表框项目 [英] How do I display all listbox items in form1 to listbox in form2 using vb 6.0

查看:278
本文介绍了如何使用vb 6.0在form2中显示form1到listbox中的所有列表框项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..我想将form1中列表框中的所有项目显示到form2中的另一个列表框中。我正在使用vb 6.0。谁知道怎么样?谢谢..

Hi..I want to display all items in listbox in form1 to another listbox in form2. Im using vb 6.0. Anybody know how? thanks..

推荐答案

表单控件在VB6中是Public,所以在From2中你可以简单地遍历form1.originalListbox元素并将它们添加到destinationListbox中。
Form controls are Public in VB6, so in From2 you could simply iterate over form1.originalListbox elements and add them in destinationListbox.


这篇关于如何使用vb 6.0在form2中显示form1到listbox中的所有列表框项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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