Get Image Resource Name of Control

36 Views Asked by At

I have a Windows Form containing Toolstrip Buttons each having an image from Program Resource. During run time for some reasons want to find name of each image resource with C# code. Comparision like below does not return desired result:

if (ctrl.Image == Properties.Resources.MyResourceName)
{ //do logical operation...}
0

There are 0 best solutions below