Results 1 to 3 of 3

Thread: Small Coding Problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    18

    Lightbulb

    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

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810

    Use the LoadPicture function

    Code:
    Set frmProfile.picPic.Picture = LoadPicture("c:\lenny\pics\collingwood\damien adkins.bmp")
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3
    Addicted Member Nice's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    144

    Question

    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
  •  



Click Here to Expand Forum to Full Width