datetimepicker

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erald Kulk

    #1

    datetimepicker

    L.S.

    in my application I changed the current culture with the following
    code:

    CultureInfo newCulture = new CultureInfo("nl-nl");
    newCulture.Date TimeFormat.DayN ames = new string[]
    {"Sunday","Mond ay", "Tuesday", "Wednesday" , "Thursday", "Friday",
    "Saturday"} ;
    //newCulture.Date TimeFormat.Abbr eviatedDayNames

    Thread.CurrentT hread.CurrentCu lture = newCulture;
    Thread.CurrentT hread.CurrentUI Culture = newCulture;

    but my datetimepicker still displays the days of the week with the
    settings of my computer (which are dutch). How can I change these
    settings??
    I cannot find an appropriate help on this.

    Erald
  • Dan Cimpoiesu

    #2
    Re: datetimepicker

    Try setting these as the first instruction in the Main

    Then Application.Run (new MainForm());


    Hope this helps

    Dan Cimpoiesu

    "Erald Kulk" <erald@delta-travel.nl> wrote in message
    news:d984f6c9.0 310130254.2c2d7 460@posting.goo gle.com...[color=blue]
    > L.S.
    >
    > in my application I changed the current culture with the following
    > code:
    >
    > CultureInfo newCulture = new CultureInfo("nl-nl");
    > newCulture.Date TimeFormat.DayN ames = new string[]
    > {"Sunday","Mond ay", "Tuesday", "Wednesday" , "Thursday", "Friday",
    > "Saturday"} ;
    > //newCulture.Date TimeFormat.Abbr eviatedDayNames
    >
    > Thread.CurrentT hread.CurrentCu lture = newCulture;
    > Thread.CurrentT hread.CurrentUI Culture = newCulture;
    >
    > but my datetimepicker still displays the days of the week with the
    > settings of my computer (which are dutch). How can I change these
    > settings??
    > I cannot find an appropriate help on this.
    >
    > Erald[/color]


    Comment

    • Erald Kulk

      #3
      Re: datetimepicker

      Dan Cimpoiesu,

      thanks for trying. But it doesn't work.



      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...