Results 1 to 3 of 3

Thread: Back ground change on run time

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    7

    Back ground change on run time

    Mambo vipi jamani? I've a image component of my form, what i want to do is, be able to change the background while the form is on run time. If possible, using a commondialog box to open the image files(.jpg, bitmap and all suported files.)
    http://home.pages.at/iceman/q3/bones.jpg

  2. #2
    Addicted Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    245

    Lightbulb May i comment

    May be this helps..
    Yes U can?
    Just use LoadPicture() function
    VB Code:
    1. Set Image1.Picture = LoadPicture(Commondialog1.FileName)
    I may have interpret your post wrongly
    Correct me if I made a mistake...
    Hope This Helps.. .....Enjoy Coding.....//


    zak2zak

  3. #3
    New Member
    Join Date
    May 2002
    Posts
    3
    more specifically
    VB Code:
    1. Commondialog1.dialogtitle = "Open Background Image"
    2. Commondialog1.showopen
    3.  
    4. if Commondialog1.FileName = "" then exit sub
    5.  
    6. Image1.Picture = LoadPicture(Commondialog1.FileName)
    Live to love, Not to hate.

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