Picture Load from Datagrid
Good Day,
Please help me with my project,
Example:
I have datagrid with field "Picture", and i have also picturebox "Picture1".
If im going to click my datagrid field "Picture", the picture must be
loaded to my picturebox "Picture1".
Im trying this code:
.Picture1.Picture = DataGrid1.Columns("Picture")
But i receive error "type mismatch".
Please help me...
Thank you.
Re: Picture Load from Datagrid
Hi, is Datagrid1.Columns("Picture") contain the path of a picture file?
if so then you can use
Code:
Picture1.Picture = Loadpicture(Datagrid1.Columns("Picture"))
Hope it help
Re: Picture Load from Datagrid
It's Working.
Thanks for this code.
Re: Picture Load from Datagrid
It's Working.
Thanks for this code.