Dynamically change icon on button?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to dynamically change the icon displayed on a command button.
I want the icon to change when the button is clicked. All I see in properties
is 'bitmap'. Thanks.
 
mscertified said:
Is there a way to dynamically change the icon displayed on a command button.
I want the icon to change when the button is clicked. All I see in properties
is 'bitmap'.

Change the Picture Type property to Linked and then set the
Picture property to the path to your icon file.
 
Those bitmaps are hidden in some file. There are icon tools
on the web that can extract them so you can create
individual icon files or libraries, but then you're back to
what I suggested.

If you have other buttons with the other bimaps, you
might(?) be able to copy the PictureData property from one
control to another, but this seems more complicated than
doing what I said earlier. Besides, if you were going to
add other buttons with various bitmaps, it would be easier
to just make one invisible and another visible.
 
Back
Top