waraq
Member
I have several images that I need to load in a picture box. The extention is .docx. How can I load these images?
I tried this:
but it didn't work. I have a message saiying that I'm out of memory and I need to assign the memory size. I don't know how to assign the size.
I also tried this:
But this set of codes didn't worked either.
So what am I doing wrong here?
I would appreciate your help.
Willy
I tried this:
VB.NET:
Archivo.Filter = "All Images|*.BMP;*.GIG;*.GIF;*.JPEG;*.JPG;*.TIF;*.EXIF;*.EMF;*.ICO;*.PNG;*.WMF;*.DOCX"
If Archivo.ShowDialog = DialogResult.OK Then
Imagen = Image.FromFile(Archivo.FileName)
Pic.Image = Imagen
End If
but it didn't work. I have a message saiying that I'm out of memory and I need to assign the memory size. I don't know how to assign the size.
I also tried this:
VB.NET:
Dim Image as image
Imagen = image.fromfile("PicW.docx")
Pic.Image = Imagen
So what am I doing wrong here?
I would appreciate your help.
Willy
Last edited by a moderator: