hi there,
I'm trying to make an simple program that accesses data from a database(that are containing data about my music-cd's).
all the rows are being displayed in an listview;
when i'm trying to fill the selected item in into textfields,
i get an error : The object reference has not been geared to a copy of an object.
here is the piece of my code :
i'm not getting what i'm doing wrong here ..
thx in advance for your help
diox
I'm trying to make an simple program that accesses data from a database(that are containing data about my music-cd's).
all the rows are being displayed in an listview;
when i'm trying to fill the selected item in into textfields,
i get an error : The object reference has not been geared to a copy of an object.
here is the piece of my code :
Dim oAlbum As New clsAlbums
For Each olitm As ListViewItem In lstAlbums.SelectedItems
oAlbum = olitm.Tag
Next
txtTitel.Text = oAlbum.name
txtArtist.Text = oAlbum.artist
txtyear.Text = oAlbum.year
i'm not getting what i'm doing wrong here ..
thx in advance for your help
diox