Work with button background

Pops

Member
Licensed User
Longtime User
I have a button background image that I wish to do an If/Else statement on: If the button1 background image is myimage.png then button1.Text = "1". Problem is, I'm not sure what the path is. The image is set when the app starts up.
Thank you for any help you can give.

Sent from my Samsung Infuse
 

Pops

Member
Licensed User
Longtime User
I've tried that, I think my syntax is wrong:
If button1.background =

Sent from my Samsung Infuse
 
Upvote 0

vb1992

Well-Known Member
Licensed User
Longtime User
You could also store that info int he Button1.tag

If Button1.tag = "pic1.png" then do this

If Button1.tag = "pic2.png" then do this


Just remember to set it

Button1.tag = "pic1.png"
 
Upvote 0
Top