Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView_DoubleClick with problems...

Status
Not open for further replies.

MikeParc

Technical User
Jan 13, 2003
15
DE
hi, i get an error with this...is there a mistake in it ?

Private Sub lvMedia_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles lvMedia.DoubleClick

Dim strFilename As String
Dim FileToPlay As String
Dim strAppPath As String

FileToPlay = lvMedia.FocusedItem.Text
strAppPath = Application.StartupPath


strFilename = strAppPath & "\" & FileToPlay

mpMedia.Open(strFilename)
mpMedia.Play()

End Sub


Mike
 
Additional information: Object reference not set to an instance of an object.
 
Not hard....

mpMedia hasn't been declared or if it is declared elsewhere, hasn't been instantiated....

Craig
 
hi,

what can I do about it ??
how can I declare it and instantiate it...?

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top