Results 1 to 2 of 2

Thread: Resource files

  1. #1

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796

    Resource files

    Anybody know how to create and use text resource files under .net?

    We write bilingual software. Under vb6 we did this sort of thing:

    Language.bas
    VB Code:
    1. Option Explicit
    2. Public Const L0_THANKS = "Thanks"
    3. Public Const L1_THANKS = "Merci"

    Form.frm
    VB Code:
    1. Label1 = iif(LangNo=1, L1_THANKS, L0_THANKS)

    Very clunky, I know - but it was a port of a very early VB application and it at least gave us the advantage of having all the text in one place, so we could just send that one file to the translator, without letting our source code out.

    I understand there is now an 'official' way to do this sort of thing with resource files, but most of the critical documentation in the beta help files seems to be blank pages.

    Any ideas or suggestions?
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  2. #2

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    It's okay. I figured it out myself.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

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