I added image to the resource in Form and set it as background Image for a button.
How to get the name of the button’s background image by through programmatic.?
I added image to the resource in Form and set it as background Image
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot retrieve the name of the image.
What you can do is when you set the image: store the name of the image in the Tag property of the Button.
You can then check the Tag property as long as you keep it in sync with the image.
Even nicer would be to sub-class the Button and add a property that stores the name.