Hi,
I have a combobox with some comments in it .when we select any one item in combobox all the items should be displayed in textbox. please help me with code.
Thanks
Im not understanding quite well, but, what you want to do is to display all the items of the combobox in the text box when you select any one item of the combobox??
lets say your combobox has Item1, Item2, Item3 and Item4
so when you select Item2 in the combobox, the textbox shows Item1, Item2, Item3, Item4 ?? separated by.. lets say commas
just write this in the validate (or change) event of the combobox:
-
dim i as long
-
textbox1.text = ""
-
for i = 0 to combobox1.listcount -1
-
textbox1.text = textbox1.text & combobox1.list(i) & ", "
-
next
-
textbox1.text = mid(textbox1.text,1,len(textbox1.text)-2)
this particular case has a lot of sintax that change from one to other version of VB, next time try to tell us what version you're using.
well HTH