当宽度增加时,DateTimePicker隐藏了一些字符 [英] DateTimePicker hiding some charater while width has been increased

查看:115
本文介绍了当宽度增加时,DateTimePicker隐藏了一些字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows窗体上使用了日期时间选择器。



i选择了自定义格式dd-MMM-yyyy。



问题是,它隐藏了一年的最后一个特征



例如如果日期 01-May-2013 ,则显示在01-May-201



可以任何身体帮助。

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.

推荐答案

我可以复制它的唯一方法是使用控件Width属性。您是否尝试将DateTimePicker.MinimumSize属性设置为82?为我工作...但你可能有不同的字体设置,所以要准备玩这个值。
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.


尝试增加datetimepicker的宽度,具体取决于你的分辨率。如果它仍然没有解决,我认为最好进入datetimepicker的属性并选择格式中的选项短,这样格式会更小
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


这篇关于当宽度增加时,DateTimePicker隐藏了一些字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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