Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6074507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:23:23+00:00 2026-05-23T10:23:23+00:00

Somewhere else , someone states that the Visible Property of a control cannot be

  • 0

Somewhere else, someone states that the “Visible” Property of a control cannot be localized. This is half-true. However, the “Visible” Property has the LocalizableAttribute set to true. But this just means that the property is serialized to the resource file. I wrote a test program that has the visible property of a label set to “false” for the Invariant Culture. Making the form localizable I changed the visible property to “true” for the German culture. Now what happens if I start the program with the system set to German locale? The label stays invisible.
Checking the resource file Form1.de.resx I can see that the visible property has not been serialized. But if I manually add this to the resource file:

<data name="label1.Visible" type="System.Boolean, mscorlib">
  <value>True</value>
</data>

the label appears. I confess to be slightly confused.
Two questions:

  • How can I detect if a property is “truly” localizable using the build-in serializer?
  • What is the recommended way to override the default behaviour?

Edit:
Maybe I need to clarify my question.
My sample program is a simple form which has the default language set to invariant. I have manually added german resources through the forms designer. Program runs on a system with regional settings set to german.

Case 1

“Visible” Property of a panel added to the form:
1.) set to false in Invariant culture, true (default) in german culture. => panel is invisible
2.) set to true in Invariant culture, false in german culture. => panel is invisible (works as expected)
Apparently the value is only written to the language specific resource file if it’s not the default.

Case 2

“Font” Property of a label added to the form:
1.) set to bold in Invariant culture, Property is reset to default in german culture. => label is not bold
2.) set to default in Invariant culture, bold in german culture. => label is bold
Now here the properties are serialized as expected.

Is it a bug or am I missing something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:23:23+00:00Added an answer on May 23, 2026 at 10:23 am

    We have received a response from Microsoft:

    I can see that this can be a problem
    for this localization scenario, but in
    general case, this is the way to
    greatly reduce the size of a resx
    file, so we would not want to change
    this implementation. This design flaw
    does not meet our current bar, so this
    will not be fixed in the next release.

    So the answer is: There is currently no solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

sorry if this question has already been answered somewhere else, but I couldn't find
If this is answered somewhere else, kindly smack me and point me in the
Sorry if this question is answered somewhere else but I tried searching several pages
you must have seen this piece of code somewhere else too,but obviously there's no
I am working on a project that was originally created by someone else, they
I have an NSXMLElement that is a copy from somewhere else in my code.
I really need to be somewhere else this morning. So, I have decided to
using stdout library it will maybe pass data to logcat or somewhere else which
I want to do something like: object[] rowOfObjects = GetRow();//filled somewhere else object[,] tableOfObjects
I set a BOOL value in NSUserDefaults as follows. [userDefaults setBool:NO forKey:@theKeyOfMyBOOL]; Somewhere else

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.