Results 1 to 4 of 4

Thread: Resource file to put label name?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    24

    Resource file to put label name?

    is that possible to put all the label name into resource file?
    i think it relates to locale issue ?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Resource file to put label name?

    If you want to use different text for Labels, etc. depending on the current language and culture then you should read about Localization and Globalization. If you want to use entire sets of resources based on some specific criteria then you should probably read about those topics anyway but you won't be using the system culture to decide which set to use so some details will be different.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    24

    Re: Resource file to put label name?

    I mean can we put the Label Text into resource file.

    for example.
    we have label text
    Product Id
    Product Name,

    however, some customer, would like to be
    Item Id,
    Item name,

    Then I have to open the form and find the label to edit
    IF i can put those label text in resource,
    I just can open the resource file to edit,
    and I dont have search all the form

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Resource file to put label name?

    You could create a satellite assembly that contains your resources. Then to change the values used you just edit the resources and recompile the DLL, then overwrite the existing one on the target machine. If you actually want to supply more than one set of resources from the outset then you'd probably use the same mechanism as localisation, but it doesn't sound like that's what you want to do. I suggest that you read the following links about satellite assemblies as it sounds like the best solution to your problem.

    Creating Satellite Assemblies
    Accessing Satellite Assemblies
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width