c# - Fill combobox with english months -


I have to fill a Cambodia with English in the month: January, February, etc. I did it the next way:

  Private string [] AmericanMoths {{var arr = Get new string [12]; Var American Culture = New Culture Info ("N-US"); (Int i = 0; i  

How do you feel, how is the better (reward)?

Does any name represent the integer number its name?

Culture Infofe already has a list of month names already in the framework. You can just type:

  var American Agriculture = New CultureInfo ("N-US"); ComboMonth.Items.AddRange (americanCulture.DateTimeFormat.MonthNames.Take (12)); //  
to remove the previous empty element

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -