i created a inventory system... and i want to put a button that can upload thier picture plsss help.
jaasaria
i created a inventory system... and i want to put a button that can upload thier picture plsss help.
jaasaria
what do you mean upload? from the internet?
or from your pc?
if from your pc try this...
1. put a CommonDialog box in your form, if you cant see the commondialog add it from from the components.
2. put a picture/image box
3....
CommonDialog1.Filter = "Picture File (*.jpg,*.gif,*.bmp)|*.jpg|*.gif|*.bmp|"
CommonDialog1.Open
image1.Picture = [B]loadpicture[/B](CommonDialog1.Filename)
I'm sorry i forgot the code if it is loadpicture or just load only...
sorry
your question is not complete?you want store or just take a picture?
if you want to save the pictures in your database, i cangive you two ways.
1. save the filepath of that picture but the problem is... if you remove that picture in your pc, of course you can not retrieve picture anymore (lol!)
2. the datatype of your picture in the database must be in OLE Object. set the datamember, datasource, and the fieldname picture in the vb in that picture of your db.
oh la! that's all!
enjoy coding...
regards,
jireh
yah... in the compter.
thx for the help...
i truly appreciated it.. thxxxxxxxxxxxxx
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.