Hi All,

I try to put images from a table in SQL in an Imagelist.
Please can anybody help me with some code to fix this problem, I stepped over from Delphi to VB.NET and in delphi it was quit simple to do this.

CODE:

strSQL = "SELECT image FROM icons"
cnSQL = New SqlConnection(AssignConnectionString("DB"))
cnSQL.Open()
cmSQL = New SqlCommand(strSQL, cnSQL)
drSQL = cmSQL.ExecuteReader()
Dim OwnList As New ImageList
Do While drSQL.Read
OwnList.Images.Add(drSQL.Item("image").SqlDbType.image)
....
....
Loop
drSQL.Close()
cnSQL.Close()
cmSQL.Dispose()
cnSQL.Dispose()

Thanks,
AXH: