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.)
Printable View
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.)
May be this helps..
Yes U can?
Just use LoadPicture() function
VB Code:
Set Image1.Picture = LoadPicture(Commondialog1.FileName)
more specifically
VB Code:
Commondialog1.dialogtitle = "Open Background Image" Commondialog1.showopen if Commondialog1.FileName = "" then exit sub Image1.Picture = LoadPicture(Commondialog1.FileName)