User Control Property VS .resx files

T

Tony

Hi all,

I have a simple question here. I developed a user control which inhreits
from the UserControl class. I exposed an custom property and then build the
project. In another project, I added this control to a Window Form, set that
property to a value, save and build the project. Everything gone well.
However, after I close the Form and open it again, the property is reset to
the default value. I looked into the .resx file, and there is no entry for
that custom property, so I am wondering how can I save the value of the
custom property I created to the .resx file?

Thanks for answering.

Tony
 
T

Tony

Hi Roy,

Thanks for your help. But, where can I find the Localizable property? I
have looked into the property page the property dialog of the pop-up menu, I
still cannot find it.

Tony


Roy said:
Have you tried setting the Localizable property of "another project's"
Form? This causes all serializable properties to be written to the resx
file.
 
L

Lebrun Thomas

Localizable it's a property of the main form.
Put it to True and so, for each control, you will be able to define
properties in fonction of the language.
To change the language during the design, modify the property Language of
the form parent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top