This is a migrated thread and some comments may be shown as answers.

Resource files

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Louis asked on 01 Oct 2007, 08:31 PM
I'm storing some message box messages in my forms resource files but the default one always get regenerated by telerik and all my messages are gone?
Is this normal ?

thanks

1 Answer, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 02 Oct 2007, 03:28 PM
Hello Louis ,

The form resource files (like Form1.resx) are serialized by VisualStudio and all manually added strings will be removed when new serialization is caused. Serialization is called for example when the from is edited in design time. The resource file can be edited manually only if the value of a currently serialized string is modified.

For example, if you put a TextBox on a form and set for its Text property to some long string, the string will go to the resx file. Another usage of resx files is when you set the Localizable property of the form to true. In that case all localizable properties for each control on the form will be serialized in a resx file that corresponds to the property Language of the form (Form1.resx is for the default language).

Manually defined strings can be stored in the application resources - see file Resources.resx.

Don't hesitate to contact us if you need further assistance or if your case is somewhat different than the ones already described here.

 
All the best,
Angel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Louis
Top achievements
Rank 1
Answers by
Angel
Telerik team
Share this question
or