473,782 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Localizable attribute

Hi there,

After applying the "Localizabl e" attribute to my form using the (form)
properties window in VS, I was expecting to see "[Localizable(tru e)]"
preceding my form's class in code (added automatically by the IDE). I don't
however. Can someone point out where this info is stored. Thanks.
Jun 13 '06 #1
3 8912
> After applying the "Localizabl e" attribute to my form using the (form)
properties window in VS, I was expecting to see "[Localizable(tru e)]"
preceding my form's class in code (added automatically by the IDE). I
don't however. Can someone point out where this info is stored. Thanks.


Ok, after reviewing the situation further am I to understand that setting
this "property" in the form's property window simply causes the IDE to
update the form's "InitializeComp onent()" method so that all properties
already marked with the "Localizabl e" attribute (in all child controls on
the form) are now read from the resource file instead of being hardcoded?
IOW, there really is no "Localizabl e" property or attribute for the form
itself. Setting this "property" in the form's property window just toggles
all "Localizabl e" controls on the form (either hardcoding them in
""InitializeCom ponent()" or reading them from the resource files). Is this
correct? Thanks.
Jun 13 '06 #2
If I understand correctly you are sent localizable from the form properties.
This changes all the form properties to be pulled from a default resource
file and also allows you to add additional locations with additional
resource files. The second "[Localizable(tru e)]" is used before a property
to have its value saved when changed to the local setting file.

If you open formname.design er.cs

Localizable = false
this.menuPrintP review.Text = "Print Pre&view";
Localizable = true
resources.Apply Resources(this. menuPrintPrevie w, "menuPrintPrevi ew");

Regards,
John

"Michael Brown" <no_spam@_nospa m.com> wrote in message
news:eq******** ******@TK2MSFTN GP05.phx.gbl...
Hi there,

After applying the "Localizabl e" attribute to my form using the (form)
properties window in VS, I was expecting to see "[Localizable(tru e)]"
preceding my form's class in code (added automatically by the IDE). I
don't however. Can someone point out where this info is stored. Thanks.

Jun 13 '06 #3
"John J. Hughes II" <no@invalid.com > wrote in message
news:Op******** ******@TK2MSFTN GP05.phx.gbl...
If I understand correctly you are sent localizable from the form
properties. This changes all the form properties to be pulled from a
default resource file and also allows you to add additional locations with
additional resource files. The second "[Localizable(tru e)]" is used
before a property to have its value saved when changed to the local
setting file.

If you open formname.design er.cs

Localizable = false
this.menuPrintP review.Text = "Print Pre&view";
Localizable = true
resources.Apply Resources(this. menuPrintPrevie w, "menuPrintPrevi ew");

Regards,
John


Ok, thanks. I'm still experimenting to come to grips with it all.
Jun 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1965
by: Kevin | last post by:
This problem has stumped me for almost two years now. In a nutshell... 1) I create a textbox class, and set the font to Tahoma 8 2) I drop the textbox class on a form, and set other properties (name, etc.) 3) I build my form, and then users say they don't want Tahoma 8, they want Tahoma 9 4) I go back to the textbox class and change it to Tahoma 9 5) I return to the form and rebuild it, and it still shows Tahoma 8 when I run it.
0
1023
by: Kristof | last post by:
I have created a framework with all our controls and forms we re-use in different projects. When we build the framework application we have a dll that we can reference in our project. When I create a form in my new project I can inhertis from a form in my framework thru the referenced dll. I will illustrate this with an example: I have a login form in the framework with 2 labels (User and pasword), 2 textboxen (user name and pasword)...
3
1213
by: Robin Tucker | last post by:
I did a little experiment during localization of my software (or at least preparations for localization) - without adding any language resources, I just went through changing the Localizable property of each form from False to True. I noticed that the resulting Executable instead of being 4mb was closer to 8mb. This suprised me. So I did a little experiment. I set the localizable flag to false on one noddy form and then checked the...
1
1505
by: aidancasey | last post by:
I have written a custom control called CheckboxDataList that derives from the DataList webControl. My control contains a public property called CheckedValues. The type of this property is a generic <List> of strings using System; using System.Collections.Generic; using System.ComponentModel;
7
2267
by: Ryan | last post by:
I'm creating a user control that has a handful of controls on it (19 in total). One of the controls on the UC is a textbox for a user's password, so I've set the PasswordChar property to "*". I rebuild and all is well. The problem arises when I have the PasswordChar set, and then try to set Localizable to True for the UC. If I set Localizable to true and have PasswordChar set and rebuild, Visual Studio 2005 will then try to reload the...
2
3161
by: Peter Vestergaard | last post by:
Hi I have a project with quite a number of dialogs in it all with Localizable=true, and all except one working fine. But the one is causing me trouble because even though Localizable=true is set, all strings (.Text properties and the like) are still written to InitializeComponent() in the .cs file instead of to the .resx file. I have tried setting the Localizable to false again, saving/building/restarting studio, and then setting...
0
1105
by: Clive Dixon | last post by:
If I add a property of type string to a form which has attribute , the form editor stores the string list I enter in the associated .resx file as a base 64 string. Does anyone know of any resource editor which would enable me to store string resources in a general .resx file in the same way? -- ====================== Clive Dixon Digita Ltd. (www.digita.com)
1
1827
by: choupi | last post by:
Hi, When Localizable = True for my Form, the ImageList of my TreeView control doesn't show any image anymore (blank instead). The strange thing is that the problem doesn't appear in another Form, and i can't see any difference between the two codes. IS there something special to know about using Treeview, ImageList and Localizable = True ? Thanks.
0
1628
by: =?Utf-8?B?V2F5bmVN?= | last post by:
I just had a thought and wondered if I am missing something or it is a good suggestion. Looking at some code, I was sorting through strings that should be put into a resource file for localization and seeing which ones are not localizable. I'm used various tools to easily put the strings into a resource file, but it is still a manual process of evaluating whether a string should be localized or not.
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.