Quantcast
Channel: DaniWeb Microsoft Windows Topics
Viewing all articles
Browse latest Browse all 2776

Parameter not valid in vb.net 2015

$
0
0

I'm new to vb.net
I wan to to make a retrieval of image into picturebox. This is my code:
All declaration has been initialize

Cmd= New sqlcommand ("select * from tblretrieveimages", con)
dt= New DataTable
sda = New sqlDataAdaptar(cmd)
sda.fill(dt)

Texbox1id = dt.rows(0)(0).tostring
Texbox1name = dt.rows(0)(1).tostring
Texbox1des = dt.rows(0)(2).tostring

Dim img() as byte
img()=dt.rows(0)(3)

Dim ms as New system.IO.Memorystream()
Picturebox1.image = image.FromStream(ms)

But whenever i make query, I'm still getting error, indicating the "Parameter is not Valid"!!!


Viewing all articles
Browse latest Browse all 2776

Trending Articles