VB.net get path of Background image of a panel on clicking it

Murray Brown
Murray Brown used Ask the Experts™
on
In VB.net what code would I use to get path of Background image of a panel on clicking it?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:
BackgroundImage property is of type Image so it does not contain the path. What you can do is to use the Tag property of the panel to store location of the image file when setting the background image.
Murray BrownASP.net/VSTO Developer

Author

Commented:
Thanks very much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial