IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
Unfortunately the "state" of an object of this nature e.g. a bitmap button cannot be returned as there is no state change taking place and what usually happens is it is just replaced by another bitmap.
The best way to verify that it has changed is by using the CRC of the image. The CRC is a checksum that is created to check if the data in a file has been corrupted. If the file changes in any way then the CRC is changed.
To verify if the image is changed use the GetBitmapCRC () method to record the CRC of the original image and compare it to the CRC of the new image.