Need Help With The List View Control - TechRepublic
General discussion
October 2, 2000 at 01:52 PM
shaknbak

Need Help With The List View Control

by shaknbak . Updated 25 years, 7 months ago

I am having a problem adding a list item to the list view control from another
form. I have a tree view control that when clicked populates to text boxs
on a seperate form. There are another 2 text boxs on that form that need
to be completedbefore the list item can be added to the list box. I can
bet the information I want in a string on the main form, but when I try
to add the list item, nothing happens. My list item count increases as well
as the indexs, but no text shows up. Some of the code I have tried using
is below.

Public Function holdInfo(infoFromOtherForm)

Dim listItemAdd As ListItem
Set listItemAdd = lvListView.ListItem.Add()
‘Here I get the information back from the seperate form
listItemAdd.Text = infoFromOtherForm
End Function

Any ideas would be great.

Gregg

This discussion is locked

All Comments