I want to allow a user to change the background picture of form in an mde file.
I've added a button that opens acommon dialogue box to select a picture file which is successfully returned and put in the form's .picture property (embedded):
Forms![main switchboard].picture = strFilename
or - me!.picture = strFilename
I then have 2 problems
i) The (stretched) picture appears ok if I have paused the code (by adding a breakpoint), but when I run it normally the picture doesn't appear on the form but part of it does appear on a strip along the bottom where the screen is bigger than the form in design view (if you get what I mean). Any ideas anyone?
ii) The other problem is that the path I have written to the picture property doesn't stay if I close the program down or go to design view and the whole thing reverts to the plain background. Is there any way I can make the change to the picture property 'permanent'?
Hopeful thanks.
I've added a button that opens acommon dialogue box to select a picture file which is successfully returned and put in the form's .picture property (embedded):
Forms![main switchboard].picture = strFilename
or - me!.picture = strFilename
I then have 2 problems
i) The (stretched) picture appears ok if I have paused the code (by adding a breakpoint), but when I run it normally the picture doesn't appear on the form but part of it does appear on a strip along the bottom where the screen is bigger than the form in design view (if you get what I mean). Any ideas anyone?
ii) The other problem is that the path I have written to the picture property doesn't stay if I close the program down or go to design view and the whole thing reverts to the plain background. Is there any way I can make the change to the picture property 'permanent'?
Hopeful thanks.