shamsi/波斯语日期选择器的VB .NET应用程序? [英] shamsi/persian date picker for vb .net application?

查看:72
本文介绍了shamsi/波斯语日期选择器的VB .NET应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

vb .net应用程序的shamsi/波斯日期选择器?

shamsi /persian date picker for vb .net application?

推荐答案

datatimepicker控件如何?

Google抛出了数百个网站,供您在 ^ ]
how about the datatimepicker control?

Google throws up hundreds of sites to read up on Google VB.NET Datetimepicker[^]


通常您会设置当前区域性:

Normally you would do it setting the current culture:

//will NOT WORK on DateTimePicker:
System.Globalization.CultureInfo culture =
    new System.Globalization.CultureInfo(/* the culture you need */);
System.Threading.Thread.CurrentThread.CurrentCulture = culture;
System.Threading.Thread.CurrentThread.CurrentUICulture = culture;



不幸的是,它不适用于DateTimePicker.您需要在系统级别上更改国际设置系统以使其起作用.

请参阅以下讨论: http://stackoverflow.com/questions/241964/how-to-change-culture-to-a-datetimepicker-or-calendar-control-in-net [



Unfortunately, it does not work for DateTimePicker. You need to change the International settings system in the level of system to make it work.

Please see this discussion: http://stackoverflow.com/questions/241964/how-to-change-culture-to-a-datetimepicker-or-calendar-control-in-net[^].

I can see only one thing to do: create your own time picker, globalization/localization-friendly one. This is not too easy but quite feasible. Hope you share your code :-).

Sorry about that, please blame Microsoft, not me. :-)

—SA


这篇关于shamsi/波斯语日期选择器的VB .NET应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆