vb.net win格式化和高亮度问题形成日期选择控件 [英] Having formatting and highliting issues with vb.net win forms date-picker control

查看:85
本文介绍了vb.net win格式化和高亮度问题形成日期选择控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个Windows应用程序中,我使用了Microsoft datepicker控件。但只是注意到我在格式化和突出显示方面存在一些问题。我已将日期格式设置为自定义,并将自定义格式设置为dd / MM / yyyy。它以正确的格式显示所选日期。但今天日历控件底部的日期以MM / dd / yyyy格式显示。当我的鼠标指针放在那个底部日期时,它没有突出显示年份的最后两位数。



为了更清楚地了解问题,请请参阅附件图片......



点击此处

In one of my windows application I've used Microsoft datepicker control. but just noticed that I've some issues in formatting and highlighting. I've set the date format to custom and set the custom format to dd/MM/yyyy. it is showing selected date in correct format. but Today's date at the bottom of calendar control is showing in MM/dd/yyyy format. and when is place my mouse pointer on that bottom todaty date, it's not highlighting the last two digits of year.

To get a more clear view of the issue, please refer to the attached image...

Click Here

推荐答案

小日期基于系统日期格式:无法通过代码格式化。试试这个:


  • 打开控制面板,找到区域设置(Win 7中的区域和语言。)
  • 将短日期格式更改为一些不寻常的东西,比如ANSI格式(yyyy-MM-dd)。保存更改。
  • 运行您的应用,并查看下拉日历中的日期格式。
The small date is based on the system date format: it cannot be formatted by code. Try this:

  • Open the control panel, find the regional settings ("Region and Language" in Win 7.)
  • Change the short date format to something unusual, such as the ANSI format (yyyy-MM-dd). Save changes.
  • Run your app, and look at the date format on the drop down calendar.


这篇关于vb.net win格式化和高亮度问题形成日期选择控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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