Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 views
in Technique[技术] by (71.8m points)

datetimepicker - How can I change the size of popup of datetime picker in .net?

enter image description here

I want to increase the size of popup as well as the size of font of popup of datetime picker. The change is done in above red block portion of datetime picker.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You cannot change the size, it is hard-baked in the native Windows component that implements the calendar. Also obvious from the MonthCalendar class (same animal as the DTP dropdown), note how dragging the sizing handles does nothing at all. And how changing the Font has no effect.

Inflexible but not really a problem, any other program that runs on the user's machine displays the exact same calendar in the exact same size. If the user has a visual impairment that gives her trouble using the calendar then she'll change the system font size or video DPI setting.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...