Click here to Skip to main content
15,792,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have setted a background image to a button in VB.Net...

Now i want to identify whether a button has a background image or not..

Some thing like this...

If btnXYZ.HasBackgroundimage then

End If

1 solution

Try this
If btnXYZ.BackgroundImage is Nothing then
 'your code here

End If
Share this answer

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