
Load a picture in a picture control
Quote:
> > I am kind of confused. I tried to do that by setting the picture
property
> > of a picture object to app.path+"\pic1.jpg"
> > but I get the error "Type mismatch". What am I doing wrong ?
> You're probably missing out the LoadPicture keyword. Try:
> Picture1.Picture = LoadPicture(App.Path + "\pic1.jpg")
> Mike
Right.
The logic here is that the picture property refers to an OLE object, not to
a string. It's confusing because the design time property window accepts the
string to point to the file location.
Although I'm not an expert myself, I think it is advisable for not to fresh
newbie's to try to explore the object browser. You'll see how things are
composed.
Bas.