Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 datecontrol 中只显示月份,比如
datecontrol1 = January, February ... december
我不想显示day, year and time。
day, year and time
这该怎么做?
如果是在 中DTPicker找到的控件Microsoft Windows Common Controls-2,则可以将 设置Format为3 - dtpCustom并将 设置CustomFormat为MMMM。
DTPicker
Microsoft Windows Common Controls-2
Format
3 - dtpCustom
CustomFormat
MMMM
如果您正在谈论,DTPicker那么您可以选择它的属性并将“CustomFormat”设置为“MMMM”,如下所示Format:3 - dtpCustom