Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have used datetime picker on my windows form.

i have selected custom format "dd-MMM-yyyy".

the problem is that, it is hiding last charater of year

for e.g. if the date is 01-May-2013 then it is displaying on "01-May-201"

can any body help.
Posted
Comments
Sergey Alexandrovich Kryukov 1-May-13 13:26pm    
I never saw such thing before. Perhaps you could make a complete but very small sample project to demonstrate just this issue and show us the code. If you can do that, please use "Improve question".
—SA
KM Perumal 2-May-13 1:04am    
ncrease the width of datetimepicker

The only way I could duplicate this is to play with the control Width property. Have you tried setting the DateTimePicker.MinimumSize property to 82? Worked for me...but you may have different font settings, so be prepared to play with that value.
 
Share this answer
 
try to increase the width of datetimepicker, depending your resolution. If it still not solved I think better go into properties of datetimepicker and choose option short in "Format", this way format will be smaller
 
Share this answer
 

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