Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Set a User Control Localizable as True, then no other form or control can use it, can not solve it
 

Set a User Control Localizable as True, then no other form or control can use it, can not solve it

My software need to be localized. I am using VS2008,I set the localizable property of a user control as True, then all the other user control and form which using it can not display with error message like "Could not find any resources appropriate for the specified culture or the neutral culture. Please make sure it embeded and liked well"

Please help!
seaor  Monday, July 06, 2009 4:25 PM

I have seen this in the past and it was usually related to a form that has become corrupted. Can you try to recreate the form and see if you still see this issue?


Cheers, Matthew | Please Mark Helpful Replies As Answers
Matthew A Campbell  Monday, July 06, 2009 4:34 PM

Hi Matthew, thanks for your reply.
I doubted that caused by the reason you mentioned. Then I clean the building, and go back to the original status. Try to make sure no related form corrupted.Set the localizable property of the control to true, save it and rebuild. The problem happened again.
Any other suggestions?

seaor  Monday, July 06, 2009 6:32 PM
Hi seaor,

Do you see the ".XX.resx" file under the usercontrol in VS Solution Explorer? XX represent your language.

For example, if I create a Chinese UI culture. There should be a file named "UserControl1.zh-CN.resx" under the UserControl1 node. And then turn into the runtime folder, ..\bin\Debug, do you see a resource.dll under that folder?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, July 08, 2009 3:40 AM
Hi Kira
I do have the resx file and it's property is embeded source.
Any more suggestion?
seaor  Wednesday, July 08, 2009 9:14 PM
Hi seaor,

Please look into the InitializeComponent method of your Usercontrol. You can find some code like this
resources.ApplyResources(this.button1, "button1");
This code is to load resource for the button on my test form. Add a break point there. Then debug your code, I guess the problem is occur there. So you need to delete the previous work and redo it. The resource might be corrupted.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, July 09, 2009 2:07 AM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 13, 2009 8:19 AM

You can use google to search for other answers

Custom Search

More Threads

• Iris detection using opencv
• controls created on the fly
• Extending ToolStripMenuItem and getting it in the designer
• problem in CheckBOx checkedchanged event..
• Top, Bottom, Left, Right anchor don't work in table layout panel
• IPersistComponentSettings
• UserControl Template not beign updated
• setResolution
• DLLImport InteropServices causing Property Editor problems with class dervied from Control
• How to organize a field with "Last changed date/time"?