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

I could probably find this out from somewhere else but thought it would be
I have a SQLServer with a linked server onto another database somewhere else. I
I have my SVN repository hosted somewhere. I want to move to somebody else.
Somewhere along the line I picked up the notion that using iframes is 'bad
I read somewhere once that the modulus operator is inefficient on small embedded devices
I recently read somewhere that writing a regexp to match an email address, taking
I recall reading somewhere that using references to smart pointers can cause memory corruption.
I've read somewhere that functional programming is suitable to take advantage of multi-core trend
jQueryUI Datepicker documentation states that the minDate option can be set using a string
I'm working for a company that has already released an app on the store.

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.