Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. about culture in c#

about culture in c#

Scheduled Pinned Locked Moved C#
csharptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijaylumar
    wrote on last edited by
    #1

    hi in windows application , i have 3 text boxes which takes intput as decimal now in en-US setting '.' is treated as '.' only but in da-DK (danish Denmark) ',' is treated as '.' and '.' is treated as ',' how to apply these settings to text boxes i found an alternative way like this i m replacing ',' as '.' in da-DK cuture i know that it is not the correct way is there any solutions for this

    C 1 Reply Last reply
    0
    • V vijaylumar

      hi in windows application , i have 3 text boxes which takes intput as decimal now in en-US setting '.' is treated as '.' only but in da-DK (danish Denmark) ',' is treated as '.' and '.' is treated as ',' how to apply these settings to text boxes i found an alternative way like this i m replacing ',' as '.' in da-DK cuture i know that it is not the correct way is there any solutions for this

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      vijaylumar wrote:

      how to apply these settings to text boxes

      They apply themselves. A textbox has no idea what you're entering, it doesn't know it's a number. int.TryParse or float.Parse, or whatever, will use the current culture.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      V 1 Reply Last reply
      0
      • C Christian Graus

        vijaylumar wrote:

        how to apply these settings to text boxes

        They apply themselves. A textbox has no idea what you're entering, it doesn't know it's a number. int.TryParse or float.Parse, or whatever, will use the current culture.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        V Offline
        V Offline
        vijaylumar
        wrote on last edited by
        #3

        can you tell how to apply globalization in windows applications thanking you

        C 1 Reply Last reply
        0
        • V vijaylumar

          can you tell how to apply globalization in windows applications thanking you

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You can apply your chosen culture in overloaded methods if you don't want to use the default culture.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups