416-621-9348 cgreaves@chrisgreaves.com Visit www.ChrisGreaves.com for this image! Chris_GEDC1894_Head (Small).JPG
Home Services Products

Embedded images (Home) ; Obtain set of original images on disk ; Build application ; Try with images embedded as images in a GUI form within the application ; Switch to images embedded as numeric strings within the application ; Converting a stored image to an ASCII string ; Converting an ASCII string to a stored image ; Optimizing storage of the embedded string ; Function to insert an image from an embedded string ; Macro to drive the function ; Essay with a string as a parameter (statement) ; Converting An Embedded String To A String ; Converting A String To An Array Of VBA Statements ; Converting an string of VBA assignment statements to an array of VBA code ; Converting an array of VBA code to a macro .


Loading

Toronto and Mississauga, Sunday, December 05, 2010 3:06 PM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.

Embedded As Images In A GUI Form

My first thought was to use the images as Pictures on command-button controls.

I made an essay by laoding a GUI form with two command buttons, and loading those controls (right-click, properties, picture) with an image each.

The user never sees the GUI form, but within the appliaction the VBA code can (a) Load the form (b) Obtain the image and (c) Unload the GUI form.

This worked well except that the GUI form control pictures had been hand-assigned by me.

I wrote VBA code to assign Pictures dynamically to the GUI form, but sad to relate, such modifiactions to the GUI form are made only in the loaded copy of the GUI form. Any attempt to save the GUI form either by saving the template (Word: File, Save) or the Userform module (VBE: File, Export) are doomed to failure.

Sigh!


Loading

Toronto and Mississauga, Sunday, December 05, 2010 3:06 PM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.