Connecting Tech Pros Worldwide Forums | Help | Site Map

fetch data from combo box or list box

Newbie
 
Join Date: Sep 2006
Posts: 17
#1: Feb 18 '07
I am a novice of VB
I want to fetch data from combo box or list which is selected
give me a easy way to select the data of combo box or list box
I can show data in combo box or list box

Member
 
Join Date: Feb 2007
Location: Quezon City,Philippines
Posts: 58
#2: Feb 19 '07

re: fetch data from combo box or list box


HI...

Use their text property:
Just insert either of this command to command button or etc....


ComboBox: Listbox:
combo1.text List1.text




GoodLuck...
Newbie
 
Join Date: Sep 2006
Posts: 17
#3: Feb 20 '07

re: fetch data from combo box or list box


hellow

but I can not move /copy data or list
from list1 to list2
in briefly in list1 data are a,b,c,d,e,f, I wnat to move one all data to new list
by clicking a command button

thanks

Quote:

Originally Posted by Esmael

HI...

Use their text property:
Just insert either of this command to command button or etc....


ComboBox: Listbox:
combo1.text List1.text




GoodLuck...

Familiar Sight
 
Join Date: Feb 2007
Posts: 164
#4: Feb 20 '07

re: fetch data from combo box or list box


HI

Try ListIndex property of those controls to select the text, and pass that value. U may also use text property

try also
In click event

list1.additem(combo1.text)

like this....

If u give little more explanation exactly what you want it seems better to help.
Reply


Similar Visual Basic 4 / 5 / 6 bytes