H
Henrik
Hallo
I have a sqlce database whit some image, how do I get the image from the
sqlce database to the picturebox?
I have search a lot on the internet, whit out finding some sing, that I cut
get works L
This is the code I work whit:
Dim cn As System.Data.SqlServerCe.SqlCeConnection = New
System.Data.SqlServerCe.SqlCeConnection("Data Source=SD Card\My
Documents\Scubase.sdf")
Dim cmd As New System.Data.SqlServerCe.SqlCeCommand 'Option
Dim da As System.Data.SqlServerCe.SqlCeDataAdapter 'Option
Dim dt As System.Data.DataTable = New
System.Data.DataTable("PicturesOrganism") 'Option
cn.Open()
cmd.CommandText = "SELECT * FROM PicturesOrganism"
cmd.Connection = cn
da = New System.Data.SqlServerCe.SqlCeDataAdapter(cmd)
da.Fill(dt)
Label1.DataBindings.Add(New Binding("Text", dt, "PictureName"))
I have a sqlce database whit some image, how do I get the image from the
sqlce database to the picturebox?
I have search a lot on the internet, whit out finding some sing, that I cut
get works L
This is the code I work whit:
Dim cn As System.Data.SqlServerCe.SqlCeConnection = New
System.Data.SqlServerCe.SqlCeConnection("Data Source=SD Card\My
Documents\Scubase.sdf")
Dim cmd As New System.Data.SqlServerCe.SqlCeCommand 'Option
Dim da As System.Data.SqlServerCe.SqlCeDataAdapter 'Option
Dim dt As System.Data.DataTable = New
System.Data.DataTable("PicturesOrganism") 'Option
cn.Open()
cmd.CommandText = "SELECT * FROM PicturesOrganism"
cmd.Connection = cn
da = New System.Data.SqlServerCe.SqlCeDataAdapter(cmd)
da.Fill(dt)
Label1.DataBindings.Add(New Binding("Text", dt, "PictureName"))