Click here to Skip to main content
13,352,879 members (71,005 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have one problem, i have two buttons, and i have two images in resources.. So i set those two images on buttons , bg image.. So i need to check if image on first button is same as image on a second button, is there any way, code?Please wrote me a code of if statemnt if you know..Thanks..
Posted 28-Feb-13 4:59am
Edo Tzumer 28-Feb-13 10:05am
Namanja, show some code please
Sergey Alexandrovich Kryukov 28-Feb-13 12:26pm
What do you mean by "same"? Same file? Identical by all bits? Same format or not? Or just similar (nearly helpless case, or very difficult)..?
Collin Jasnoch 28-Feb-13 15:05pm
Your problem statement seems quite odd.

If you have the two images as resources and you are setting those two images on the buttons bg image there seems no need to run a check. What is it you are trying to accomplish by comparing the bg images of the buttons?
Nemanja Petrovic 28-Feb-13 16:34pm
Lets say:
i have three buttons.
first button have bg image a.jpeg
second button have bg image b.jpeg
third button have bg image a.jpeg

On click on second button bg image will change to a.jepg, so i need to check afther click
if (button1.bgimg == button2.bgimg == button3.bgimg)...?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180111.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100