Non Shared Object Refrence?

cammog91

Member
Joined
Feb 19, 2005
Messages
5
Programming Experience
Beginner
plz help! it underlines the function i do with LvPhotos
---
C:\-\-\-(etc)-\-\-\FrmMain.vb(77): Reference to a non-shared member requires an object reference.
---


Private Sub BtnReload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnReload.Click

' make a reference to a directory



Dim directory As New IO.DirectoryInfo("C:\")

Dim diar1 As IO.FileInfo() = directory.GetFiles()

Dim dra As IO.FileInfo

'list the names of all files in the specified directory



For Each dra In diar1

With LvPhotos

.ListViewItemCollection.Add("Blah")

End With



Next



End Sub


 
Top Bottom