Results 1 to 5 of 5

Thread: [RESOLVED] National language used by an application

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    9

    Resolved [RESOLVED] National language used by an application

    Hi guys!

    I have developed an application and I am using Swedish as the language on my development computer. Later, I found out that the computer that is going to run my application uses English as language, which causes problems with different strings like float values, date and time. I am not allowed to change the language on the computer that is about to run my application because the computer runs other applications that depend on the English language setting. So, I am wondering if you could maybe send in a parameter or something to the application that tells it to use English language instead of Swedish?

    Thanks!
    /Stefan

  2. #2
    Hyperactive Member josep's Avatar
    Join Date
    Sep 2006
    Location
    Barcelona
    Posts
    409

    Re: National language used by an application

    Hi

    which .net version are you using?
    Useful links:DB connection strings ADO.NET VB.NET Tutorials

    • Don't forget to close the thread if solved
    • If this post helps you rate it

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    9

    Re: National language used by an application

    Ahh...sorry about that. Forgot. I am using VB .NET 2005.

  4. #4
    Hyperactive Member josep's Avatar
    Join Date
    Sep 2006
    Location
    Barcelona
    Posts
    409

    Re: National language used by an application

    try that

    VB Code:
    1. My.Application.ChangeCulture("en-US")

    you can also use "en-GB" for english from grat britain

    check on cultureinfo for more values

    Hope this helps
    Useful links:DB connection strings ADO.NET VB.NET Tutorials

    • Don't forget to close the thread if solved
    • If this post helps you rate it

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    9

    Re: National language used by an application

    Thanks man! It worked.

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