Article View: alt.pl.comp.lang.csharp
Article #21768Re: kontrolka do wpisywania daty
From: Jakub Owczarski
Date: Thu, 23 Sep 2010 14:46
Date: Thu, 23 Sep 2010 14:46
21 lines
2268 bytes
2268 bytes
On Sep 23, 11:10 am, Łukasz 'Maly' Ostrowski <m...@USUNnemo.pl> wrote:
> [W wątku UI]
> <code>
> var ci = new CultureInfo("pl-PL");
> ci.DateTimeFormat.ShortDatePattern = "dd.MM.yyyy";
> Thread.CurrentThread.CurrentCulture = ci;
> Thread.CurrentThread.CurrentUICulture = ci;
> </code>
>
> To nie przejdzie, customowy formatting string nie będzie
> używany przez DTP z Common Controls(bo w ogóle nie będzie
> przekazany ;-) ).
Przechodzi i działa jak trzeba.
Thread.CurrentThread.CurrentCulture =
(System.Globalization.CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern =
"dd.MM.yyyy";
pzdr.
Technical Details
Message-ID:
<6b91e88e-6689-4540-9336-0a1716939882@n7g2000vbo.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!plix.pl!newsfeed1.plix.pl!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!n7g2000vbo.googlegroups.com!not-for-mailReferences:
<4c9b00fd$0$22802$65785112@news.neostrada.pl> <1atet5p5molnl.tpksvqoc7ucn.dlg@40tude.net> <4c9b0784$0$22803$65785112@news.neostrada.pl> <2rtc9j3imx2u.5dtxw8rywlm8.dlg@40tude.net> <4c9b1efc$0$20994$65785112@news.neostrada.pl> <i7f8fs$a47$1@inews.gazeta.pl> <i7f8or$b2e$1@inews.gazeta.pl> <hfc9591zxm7y$.18ze5m3a5zr94$.dlg@40tude.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!plix.pl!newsfeed1.plix.pl!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!n7g2000vbo.googlegroups.com!not-for-mail From: Jakub Owczarski <jakub.owczarski@gmail.com> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: kontrolka do wpisywania daty Date: Thu, 23 Sep 2010 07:46:41 -0700 (PDT) Organization: http://groups.google.com Lines: 22 Message-ID: <6b91e88e-6689-4540-9336-0a1716939882@n7g2000vbo.googlegroups.com> References: <4c9b00fd$0$22802$65785112@news.neostrada.pl> <1atet5p5molnl.tpksvqoc7ucn.dlg@40tude.net> <4c9b0784$0$22803$65785112@news.neostrada.pl> <2rtc9j3imx2u.5dtxw8rywlm8.dlg@40tude.net> <4c9b1efc$0$20994$65785112@news.neostrada.pl> <i7f8fs$a47$1@inews.gazeta.pl> <i7f8or$b2e$1@inews.gazeta.pl> <hfc9591zxm7y$.18ze5m3a5zr94$.dlg@40tude.net> NNTP-Posting-Host: 217.28.177.57 Mime-Version: 1.0 X-Trace: posting.google.com 1285253201 26768 127.0.0.1 (23 Sep 2010 14:46:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 23 Sep 2010 14:46:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n7g2000vbo.googlegroups.com; posting-host=217.28.177.57; posting-account=VA26nAoAAACG6Q8p9dqThJrYQdPBTdr3 User-Agent: G2/1.0 X-HTTP-Via: 1.1 skyhqapx02.t.is:3128 (squid/2.6.STABLE23) X-HTTP-UserAgent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.6.30 Version/10.62,gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit