locked
How to set Control Panel's Language setting RRS feed

  • Question

  •  

    Hi,

    How to set Control Panel's Language settings (Regional and Language Options). When I change the Language Option to Swedish Language, I wanto Show those date Formats and all in my winform application

     

     

     

    Wednesday, May 30, 2007 7:55 AM

Answers

  • Can you explain what is the problem. By default it should be as you like. But that is true for all data shown as strings. For example, when you view datetime value in datagridview then it should be in desired format set by the user settings in regional options. But if you show datatime value in datetimepicker control, it can be posible that developer set strict format for date value. If you show datevalue in label, using datevalue.ToString() then should be fine again.
    If you don't want to depend on user settings in regional options and always to have Sweish settings format than you can do that changing Current Thread Culture to Swedish. You can do this at application start.
    Wednesday, May 30, 2007 1:02 PM