473,837 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Localizing " inherited forms?

Nak
Hi there,

I have some inherited forms that I wish to make "localizabl e",
unfortunately none of the items I wish to be "localizabl e" are actually
being "localized" . For example, I have a few of properties which set the
text of some labels on the form which are inherited from the base form,
these text values aren't "localized" Has anyone any ideas where I'm going
wrong?

Nick.
Nov 21 '05 #1
24 1842
Nak
Hi again,

I've found a way round it by making the access modifier for each control
I wish to make localizable "Protected" rather than "Friend", then I can set
the property in the designer directly rather than through my own property.
I was hoping that there would be an attribute that I could set to my own
properties that I wish to be localizable? Thanks for any tips with this in
advance.

Nick.

"Nak" <a@a.com> wrote in message
news:OG******** *********@TK2MS FTNGP12.phx.gbl ...
Hi there,

I have some inherited forms that I wish to make "localizabl e",
unfortunately none of the items I wish to be "localizabl e" are actually
being "localized" . For example, I have a few of properties which set the
text of some labels on the form which are inherited from the base form,
these text values aren't "localized" Has anyone any ideas where I'm going
wrong?

Nick.

Nov 21 '05 #2
"Nak" <a@a.com> wrote in message
news:OX******** ******@TK2MSFTN GP11.phx.gbl...
I was hoping that there would be an attribute that I could set to my
own properties that I wish to be localizable?


The attribute

System.Componen tModel.Browsabl eAttribute(True )

will make the property visible in the Properties window.

HTH,
Phill W.
Nov 21 '05 #3
Nick,
Is the base form in the same assembly or a different assembly?

If the base form is in a different assembly, then as you found you need to
use "Protected" or "Protected Friend" to be able to set a controls
properties in the derived form.

I have not tried it, can't you set the base form to be localizable &
localize just be base form, then localize just the derived form? Although if
you need to rearrange controls, I can see where the derived form would need
to change the location of base controls...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OX******** ******@TK2MSFTN GP11.phx.gbl...
Hi again,

I've found a way round it by making the access modifier for each
control I wish to make localizable "Protected" rather than "Friend", then
I can set the property in the designer directly rather than through my own
property. I was hoping that there would be an attribute that I could set
to my own properties that I wish to be localizable? Thanks for any tips
with this in advance.

Nick.

"Nak" <a@a.com> wrote in message
news:OG******** *********@TK2MS FTNGP12.phx.gbl ...
Hi there,

I have some inherited forms that I wish to make "localizabl e",
unfortunately none of the items I wish to be "localizabl e" are actually
being "localized" . For example, I have a few of properties which set the
text of some labels on the form which are inherited from the base form,
these text values aren't "localized" Has anyone any ideas where I'm
going wrong?

Nick.


Nov 21 '05 #4
Nak
Hi Jay,
If the base form is in a different assembly, then as you found you need to
use "Protected" or "Protected Friend" to be able to set a controls
properties in the derived form.
Oh that would make sence why I was having problems seeing the objects in
the other assembly.
I have not tried it, can't you set the base form to be localizable &
localize just be base form, then localize just the derived form? Although
if you need to rearrange controls, I can see where the derived form would
need to change the location of base controls...


I'm not quite sure how that works to be honest with you, I was suprised
that it didn't localise in the first place, but then again I suppose all it
is doing is applying localisation to specific controls anyway. Unless of
course it is applying it to anything with the "browsable" attribute as
suggested by Phil. I shall have to take another look. Cheers loads for the
help!

Nick.
Nov 21 '05 #5
Nak
Hi Phil,
System.Componen tModel.Browsabl eAttribute(True )


Hmmm, would take make the property localisable? I'll have to take a
look in a short while. Cheers for the tip and your time, most appreciated.

Nick.
Nov 21 '05 #6
Nick,
I don't know if there is a relationship between BrowsableAttrib ute &
Localizable.

I would only expect protected or public controls of the base form to be
localizable from the derived form. However I have not tried localizing an
inherited form yet...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OG******** ******@TK2MSFTN GP14.phx.gbl...
Hi Jay,
If the base form is in a different assembly, then as you found you need
to use "Protected" or "Protected Friend" to be able to set a controls
properties in the derived form.


Oh that would make sence why I was having problems seeing the objects
in the other assembly.
I have not tried it, can't you set the base form to be localizable &
localize just be base form, then localize just the derived form? Although
if you need to rearrange controls, I can see where the derived form would
need to change the location of base controls...


I'm not quite sure how that works to be honest with you, I was suprised
that it didn't localise in the first place, but then again I suppose all
it is doing is applying localisation to specific controls anyway. Unless
of course it is applying it to anything with the "browsable" attribute as
suggested by Phil. I shall have to take another look. Cheers loads for
the help!

Nick.

Nov 21 '05 #7
Jay, I've read all I can find on Localization but still don't really
understand it. I think it's a way of using different cultural info for
things like Text Properties. What is meant by Localizing a Form?

"Jay B. Harlow [MVP - Outlook]" wrote:
Nick,
I don't know if there is a relationship between BrowsableAttrib ute &
Localizable.

I would only expect protected or public controls of the base form to be
localizable from the derived form. However I have not tried localizing an
inherited form yet...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OG******** ******@TK2MSFTN GP14.phx.gbl...
Hi Jay,
If the base form is in a different assembly, then as you found you need
to use "Protected" or "Protected Friend" to be able to set a controls
properties in the derived form.


Oh that would make sence why I was having problems seeing the objects
in the other assembly.
I have not tried it, can't you set the base form to be localizable &
localize just be base form, then localize just the derived form? Although
if you need to rearrange controls, I can see where the derived form would
need to change the location of base controls...


I'm not quite sure how that works to be honest with you, I was suprised
that it didn't localise in the first place, but then again I suppose all
it is doing is applying localisation to specific controls anyway. Unless
of course it is applying it to anything with the "browsable" attribute as
suggested by Phil. I shall have to take another look. Cheers loads for
the help!

Nick.


Nov 21 '05 #8
Dennis,
Localization is the process of converting your form so it displays correctly
in different cultures (languages). Closely related to Localization is
Globalization.

For example most of my forms are in US English, if someone in Austria wanted
to use my form they would probably want a German - Austria version of the
form, so they would want a form localized to culture "de-AT". However
someone in Germany would probably want a German - Germany form or culture
"de-DE". Now someone in the Netherlands might prefer a "nl-NL" form for
Dutch - The Netherlands...

Localization often entails more then just Text Properties as the placement
of controls can be affected, for example the size of your labels will often
increase (or decrease).

Localization should also entail the text you send in Exceptions, and
possibly the order of words.

For details on Localization see:

http://msdn.microsoft.com/library/de...Namespaces.asp

http://msdn.microsoft.com/library/de...mework_sdk.asp

http://msdn.microsoft.com/library/de...calization.asp

http://msdn.microsoft.com/library/de...isualBasic.asp

Hope this helps
Jay

"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:46******** *************** ***********@mic rosoft.com...
Jay, I've read all I can find on Localization but still don't really
understand it. I think it's a way of using different cultural info for
things like Text Properties. What is meant by Localizing a Form?

"Jay B. Harlow [MVP - Outlook]" wrote:
Nick,
I don't know if there is a relationship between BrowsableAttrib ute &
Localizable.

I would only expect protected or public controls of the base form to be
localizable from the derived form. However I have not tried localizing an
inherited form yet...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OG******** ******@TK2MSFTN GP14.phx.gbl...
> Hi Jay,
>
>> If the base form is in a different assembly, then as you found you
>> need
>> to use "Protected" or "Protected Friend" to be able to set a controls
>> properties in the derived form.
>
> Oh that would make sence why I was having problems seeing the
> objects
> in the other assembly.
>
>> I have not tried it, can't you set the base form to be localizable &
>> localize just be base form, then localize just the derived form?
>> Although
>> if you need to rearrange controls, I can see where the derived form
>> would
>> need to change the location of base controls...
>
> I'm not quite sure how that works to be honest with you, I was
> suprised
> that it didn't localise in the first place, but then again I suppose
> all
> it is doing is applying localisation to specific controls anyway.
> Unless
> of course it is applying it to anything with the "browsable" attribute
> as
> suggested by Phil. I shall have to take another look. Cheers loads
> for
> the help!
>
> Nick.
>


Nov 21 '05 #9
Dennis,
I should add that some countries (such as Switzerland) actually support
multiple cultures (the country has 3 official languages!).

For example:
de-CH = German - Switzerland
fr-CH = French - Switzerland
it-CH = Italian - Switzerland

So localizing your app for Switzerland might actually entail translating it
into possible 3 languages...

NOTE: doing a quick google, shows that parts of Switzerland also speak
Romansh, however I don't see that listed as a valid .NET CultureInfo
class...

Hope this helps
Jay
"Dennis" <De****@discuss ions.microsoft. com> wrote in message
news:46******** *************** ***********@mic rosoft.com...
Jay, I've read all I can find on Localization but still don't really
understand it. I think it's a way of using different cultural info for
things like Text Properties. What is meant by Localizing a Form?

"Jay B. Harlow [MVP - Outlook]" wrote:
Nick,
I don't know if there is a relationship between BrowsableAttrib ute &
Localizable.

I would only expect protected or public controls of the base form to be
localizable from the derived form. However I have not tried localizing an
inherited form yet...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OG******** ******@TK2MSFTN GP14.phx.gbl...
> Hi Jay,
>
>> If the base form is in a different assembly, then as you found you
>> need
>> to use "Protected" or "Protected Friend" to be able to set a controls
>> properties in the derived form.
>
> Oh that would make sence why I was having problems seeing the
> objects
> in the other assembly.
>
>> I have not tried it, can't you set the base form to be localizable &
>> localize just be base form, then localize just the derived form?
>> Although
>> if you need to rearrange controls, I can see where the derived form
>> would
>> need to change the location of base controls...
>
> I'm not quite sure how that works to be honest with you, I was
> suprised
> that it didn't localise in the first place, but then again I suppose
> all
> it is doing is applying localisation to specific controls anyway.
> Unless
> of course it is applying it to anything with the "browsable" attribute
> as
> suggested by Phil. I shall have to take another look. Cheers loads
> for
> the help!
>
> Nick.
>


Nov 21 '05 #10

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

Similar topics

16
2114
by: WindAndWaves | last post by:
Hi there I have $initstartdate = date("d-m-Y"); in my code How can I get it to be date() + 1 or 7 for that matter. Because my server is in the US and I am in New Zealand, they are always a day behind....
12
1141
by: Michel Vanderbeke | last post by:
Hello, Can you please help me? To produce a "&"-sign on the screen, I use "&&". Otherwise I get an underscore on the screen. However, when a text is in a database, and I use the same field to reproduce reports, the name in the report is written also with "&&". So I want to have it both ways: on screen as well as on paper a single "&" where a single "&" must be.
0
9682
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
10877
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
10570
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...
0
10273
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9402
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
7001
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();...
0
5670
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5849
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.