Do you have a command button that you are going to use in many places, where it will be a different size in each place? If this is what you are trying to do I found a trick that works pretty well....
Create an image that looks exacly like a push button, adding your other image to it as well. The image control has almost all the same properties and methods that a command button does. But there is also a property in the image control called "Stretch". If you change that to "2-Stretch" then as you resize the image the picture changes size with it.
GeneS
>Ok, what is the trick! I am creating a subclass, and want to put a picture on a command button. It is meant to be a small button, and as I reduce its size the picture disappears. The picture seems not to be centered, but rather lies on the upper quarter of the button. Yes I did the help file and rtfm with no clue.
>tia-
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement