How can i just want to use my variable string like name of resource file.
For example Using Resources look like :
bool success = FindBitmap(Properties.Resources.waypoint1, bmpScreenshot, out location);
As you see there i use resource named : waypoint1. I need to do something like that :
string wpt1 = "waypoint1";
But i can't just do it simple like that :
bool success = FindBitmap(Properties.Resources.wpt1, bmpScreenshot, out location);
Could someone give an simple example how to do that? I searched forum but can't find solution. Please be patinent for newbie. Thank you!
EDIT 1
My Findbitmap look like :
private bool FindBitmap(Bitmap bmpNeedle, Bitmap bmpHaystack, out Point location)