Re: vb-listview-plz help me out




I couldn't get the routine below to fail.

Which line exactly is it failing on?

Dave.

>If Not ListView2.SelectedItem Is Nothing Then
> ListView2.SelectedItem.Selected = False
> Set ListView2.SelectedItem = Nothing
> End If

> for the second listview it trows up a big error "object variable or
> with block variable not set"...not able to figure out why it is
> happening??????????plz help as i am beginner to vb
>


.