Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
Joezer BH 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)..?
—SA
[no name] 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?
[no name] 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900