How to read values from .resx file in Ranorex

Ask general questions here.
sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

How to read values from .resx file in Ranorex

Post by sunitha » Fri Jun 19, 2009 2:46 pm

How can i read values in Myresources.resx in Ranorex main code :oops:

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Fri Jun 19, 2009 3:41 pm

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