PDA

Click to See Complete Forum and Search --> : Add List View Item


TH3 K1D
Aug 9th, 2006, 01:26 PM
Dim NewTask As String = InputBox("TASK")
ListView1.Items.Add(NewTask)

It's saying String 'NewTask' can not be converted. Please help!

petevick
Aug 9th, 2006, 01:32 PM
Try
Dim lvItem As New ListViewItem

vItem = New ListViewItem
lvItem.Text = "This is my text"
lListview1.Items.Add(lvItem)

Pete

mabbas110
Aug 24th, 2006, 02:10 AM
try this

Dim NewTask As String
NewTask = InputBox("TASK")
List1.AddItem (NewTask)

TH3 K1D
Aug 24th, 2006, 07:00 PM
Ok thanks. How could I make it so it has a check box next to each item?

petevick
Aug 25th, 2006, 01:51 AM
Change the 'Checkboxes' property to True