Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
AnswerRe: mdi forms with parent and child interaction Pin
harold aptroot18-Jan-09 23:44
harold aptroot18-Jan-09 23:44 
GeneralRe: mdi forms with parent and child interaction Pin
DaveyM6919-Jan-09 1:16
professionalDaveyM6919-Jan-09 1:16 
GeneralRe: mdi forms with parent and child interaction Pin
CodingYoshi19-Jan-09 4:16
CodingYoshi19-Jan-09 4:16 
Questionstrange Http timeout issue Pin
George_George18-Jan-09 23:11
George_George18-Jan-09 23:11 
QuestionHow to translate the property item name of the control in the properties window? Pin
mctramp16818-Jan-09 21:02
mctramp16818-Jan-09 21:02 
AnswerRe: How to translate the property item name of the control in the properties window? Pin
Eddy Vluggen18-Jan-09 22:02
professionalEddy Vluggen18-Jan-09 22:02 
GeneralRe: How to translate the property item name of the control in the properties window? Pin
mctramp16819-Jan-09 0:13
mctramp16819-Jan-09 0:13 
AnswerRe: How to translate the property item name of the control in the properties window? Pin
Eddy Vluggen19-Jan-09 1:28
professionalEddy Vluggen19-Jan-09 1:28 
The language-pack does it automatically, and the translations are embedded deep in the .NET runtime. It's a low-impact solution to your question, and I suggest you take a look at it before experimenting with sourcecode.

BTW, my Visual Studio IDE @ work uses these Dutch language-packs, and it's bloody annoying to search for something simple like "ForeColor". Not only is the sort-order different (Voorgrondkleur), but it's in a category with a different name. It gets worse when you're facing a localized version of an error - and you need to search the English-based MSDN for the same error.. It doesn't increase the productivity, it just causes more bugs.

Within the computer, everything should remain in a single language. That has nothing to do with the language that the end-user sees. It's just not possible to teach a computer all the localized versions of a boolean.

mctramp168 wrote:
I remember my colleague I have achieved this funtion in his program,not handling by the system languagepack,He can change the Text property of the button with any name.

Phone your collegue, ask how he did it Smile | :)

You could also redefine the property-names, as shown in the example below;
/// <summary>
/// This is the original property. We want to 'rename' these in code as well as
/// in the property-editor. First, we'll hide the current property as much
/// as reasonable:
/// </summary>
[Browsable(false)]
public override System.Drawing.Color ForeColor
{
    get
    {
        return base.ForeColor;
    }
    set
    {
        base.ForeColor = value;
    }
}

/// <summary>
/// This is our 'translated' version of the "ForeColor". It gets dumped in the same
/// category as before, but you could also translate that string.
///
/// If you do, a new category will be created automatically, and the property will
/// be visible under that new category-name.
/// </summary>
[Browsable(true), Category("Appearance")]
public System.Drawing.Color VeurgrondKleur
{
    get
    {
        return this.ForeColor;
    }
    set
    {
        this.ForeColor = value;
    }
}

This will hide the "ForeColor" from the property-editor in Visual Studio. This example was built on a derivate of a textbox.

I wouldn't dub that a good programming practice. It makes things more complex, without actually adding much value. If you're facing a development-team that has a hard-time with English, then consider upgrading their knowledge of the language. The ROI would be higher when you train the Visual-Studio-user to communicate in English then trying to adapt the environment to the user.

Hope this helps,

I are troll Smile | :)

GeneralRe: How to translate the property item name of the control in the properties window? Pin
mctramp16819-Jan-09 15:22
mctramp16819-Jan-09 15:22 
Questionhow to detect windowstate outside form? Pin
ping_jacob18-Jan-09 20:46
ping_jacob18-Jan-09 20:46 
AnswerRe: how to detect windowstate outside form? [modified] Pin
Luc Pattyn18-Jan-09 21:15
sitebuilderLuc Pattyn18-Jan-09 21:15 
GeneralRe: how to detect windowstate outside form? Pin
ping_jacob18-Jan-09 22:46
ping_jacob18-Jan-09 22:46 
AnswerRe: how to detect windowstate outside form? [modified] Pin
Luc Pattyn18-Jan-09 23:05
sitebuilderLuc Pattyn18-Jan-09 23:05 
AnswerRe: how to detect windowstate outside form? Pin
Giorgi Dalakishvili19-Jan-09 0:38
mentorGiorgi Dalakishvili19-Jan-09 0:38 
Questionsystem hang debug Pin
George_George18-Jan-09 19:59
George_George18-Jan-09 19:59 
AnswerRe: system hang debug Pin
N a v a n e e t h18-Jan-09 20:34
N a v a n e e t h18-Jan-09 20:34 
GeneralRe: system hang debug Pin
George_George18-Jan-09 20:50
George_George18-Jan-09 20:50 
GeneralRe: system hang debug Pin
N a v a n e e t h18-Jan-09 20:55
N a v a n e e t h18-Jan-09 20:55 
GeneralRe: system hang debug Pin
George_George19-Jan-09 1:26
George_George19-Jan-09 1:26 
AnswerRe: system hang debug Pin
Luc Pattyn18-Jan-09 21:21
sitebuilderLuc Pattyn18-Jan-09 21:21 
GeneralRe: system hang debug Pin
N a v a n e e t h18-Jan-09 21:26
N a v a n e e t h18-Jan-09 21:26 
GeneralRe: system hang debug Pin
George_George19-Jan-09 1:27
George_George19-Jan-09 1:27 
GeneralRe: system hang debug Pin
George_George19-Jan-09 1:28
George_George19-Jan-09 1:28 
AnswerRe: system hang debug [modified] Pin
Luc Pattyn19-Jan-09 1:53
sitebuilderLuc Pattyn19-Jan-09 1:53 
GeneralRe: system hang debug Pin
George_George19-Jan-09 2:05
George_George19-Jan-09 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.