Page 1 of 1

How to read values from .resx file in Ranorex

Posted: Fri Jun 19, 2009 2:46 pm
by sunitha
How can i read values in Myresources.resx in Ranorex main code :oops:

Re: How to read values from .resx file in Ranorex

Posted: Fri Jun 19, 2009 3:41 pm
by Support Team
There are several ways, for all of them samples can easily found by asking Google...

One way is to use the ResourceManager class:
ResourceManager rm = new ResourceManager("Namespace.ResourceFileName", Assembly.GetExecutingAssembly());
string myString = rm.GetString("MyString");
Regards,
Alex
Ranorex Support Team