Click here to Skip to main content
15,918,193 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
shamsi /persian date picker for vb .net application?
Posted
Updated 17-Jun-11 5:40am
v3

how about the datatimepicker control?

Google throws up hundreds of sites to read up on Google VB.NET Datetimepicker[^]
 
Share this answer
 
Comments
faezeh66 17-Jun-11 11:41am    
shamsi date picker..
Simon_Whale 17-Jun-11 11:45am    
Have a look at this which I found through Google

http://sourceforge.net/projects/farsidatepicker/
faezeh66 17-Jun-11 12:09pm    
thank you but it is Web based
Normally you would do it setting the current culture:

C#
//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;


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
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 17-Jun-11 21:25pm    
Just a note: I noticed a down-vote by 1. Someone decided to blame me, not Microsoft for the deficiency of this control. Needless to say, not solution if offered. Very clever!
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900