Results 1 to 4 of 4

Thread: adding photos during runtime.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    233

    adding photos during runtime.

    I have a persons database. I would like to be able to include a photograph of the person as well.

    i will create an additional field in my table for the photos at design time, but
    how would i be able to add new photographs during runtime?

    Any ideas?

    Thanks

  2. #2
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    Picture1.Picture = LoadPicture("c:\folder\filename.bmp")

    here you go ... this is what you need, right ?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    233
    thanks BramVandenbon


    However, the problem i am having now is that the picturebox displays only a small part of the bitmap.

    How can i fit the entire bitmap in to the picturebox without resizing the picturebox.

    Thanks

  4. #4
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    Instead of Picturebox you may use Image control with its Stretch property = True - just set appropriate size to it at design time.
    McGenius

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