|
-
Feb 23rd, 2001, 06:36 AM
#1
Thread Starter
Junior Member
Hey all,
I'm new to Visual Basic, and I just need a little help that I'm hoping someone can give me.
I need a picture to come up inside a picture box in a new form, but everything I've tried comes with a Type Mismatch.
This is the code I'm using
frmProfile.picPic Path = c:\lenny\pics\collingwood\damien adkins.bmp"
Is there a problem I'm missing? Or do I need to change the file from .bmp to .jpg?
Hopefully somebody can help me.
Thanks for your time,
Al
-
Feb 23rd, 2001, 06:40 AM
#2
Fanatic Member
Use the LoadPicture function
Code:
Set frmProfile.picPic.Picture = LoadPicture("c:\lenny\pics\collingwood\damien adkins.bmp")
-
Feb 23rd, 2001, 07:07 AM
#3
Addicted Member
why use the set with loadpicture? it works well without the SET stmt.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|