Hey all,
Using an image box what wrong with doing this?
Dim strpic As String
strpic = File1.Path & "\" & File1.FileName
img.Picture = strpic
I get the error "Type Mismatch"
Anyone?
Printable View
Hey all,
Using an image box what wrong with doing this?
Dim strpic As String
strpic = File1.Path & "\" & File1.FileName
img.Picture = strpic
I get the error "Type Mismatch"
Anyone?
I think it is LoadPicture as in
img.Picture = LoadPicture (strpic)
Greg
The Picture property is an object, not a string. Use the LoadPicture() function to put a picture into the control.
VB Code:
img.Picture = LoadPicture(strpic)
I'm so stupid.
I did this b4 but forgot and also when i did a search i typed imge instead of image!
One of those days!
Thanks heaps guys!:D :D