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

  • Home
  • SEARCH
  • 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 1093811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:52:51+00:00 2026-05-16T23:52:51+00:00

I am translating a compact framework 2.0 windows form in Visual Studio 2005. To

  • 0

I am translating a compact framework 2.0 windows form in Visual Studio 2005. To do that, I change the language of the form to German (the target language) and edit/resize the controls on the form. This creates a resources.de.resx file containing the translated strings as expected.

However, there is a custom control on the form, which has a property called GroupText, which must also be translated. However, the Form Designer refuses to use the resource files for this property. Whenever I change the property in the property editor, it gets changed for all languages. I checked the resx files – they do not contain the GroupText property, and the Designer generated code also does not use the resx file for this property.

Is there a way to enable resx-based, Visual Studio supported localization for custom controls as well?

Edit:

As an addition to the accepted answer, here’s what you have to do to get resx files for custom controls to work.

Each property that should go into a resx file must have the Localizable attribute set to true. Now, the CF does not support this attribute via the usual bracket syntax. You cannot just write [Localizable=true] in the cs source file. You have to create a separate file called DesignTimeAttributes.xmta in the project and add the following:

<?xml version="1.0" encoding="utf-16"?>
<Classes xmlns="http://schemas.microsoft.com/VisualStudio/2004/03/SmartDevices/XMTA.xsd">
<Class Name="MyControl">
  <Property Name="MyProperty">
    <Localizable>true</Localizable>
  </Property>
</Class>

Once you rebuild the assembly containing the control, Visual Studio will put the property values into resx files.

  • 1 1 Answer
  • 2 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-16T23:52:52+00:00Added an answer on May 16, 2026 at 11:52 pm

    Custom controls for I think quite obvious reasons are not localizable by default, the author of such control has to take care of that. Some custom controls have boolean Localizable property, which controls whether the control writes its messages to resource file but I assume this is not the case here.

    If the text you want to translate is accessible via property or constructor, you can create your own *.resx file and assign this text during creation. If it is not, I am afraid you’re out of luck.

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

Sidebar

Related Questions

I am currently translating a windows form application, written in VB6, to a webpage
I'm translating some C# code to Delphi, I understand that(msg = TMsg): (int)msg.LParam is
I am translating 3rd party library API written in C to D. That library
I am translating a NUnit test to Visual Studios unit testing and I am
I have problem with translating this sentence: Running in-house systems means that you can
I'm translating a C++ Windows API to a delphi *.pas file. I have this
I'm having problems translating my associative array that I create in jQuery to something
I'm having trouble translating C# code to VB 6 (Haven't done that in a
I am translating a C# class that wraps an unmanaged library to F#. I
I'm thinking of translating a book from English to my native language. I can

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.