开发者

date select , openFileDialog equivalent

开发者 https://www.devze.com 2023-01-29 04:38 出处:网络
i need to select a date in my winforms app and wish to find something like an openFileDialog, and that is when i click on a button, a calendar shows up and lets me select a date. Is there such a funct

i need to select a date in my winforms app and wish to find something like an openFileDialog, and that is when i click on a button, a calendar shows up and lets me select a date. Is there such a function built i开发者_JAVA技巧n c# ?


You don't have it as a Dialog window, but you have a component called DateTimePicker.

If you really need it on a dialog window, you can put this component on it's own form and open that form with ShowDialog.

A bit more manual work, but it should work just fine.


Your best bet is the DateTimePicker.

0

精彩评论

暂无评论...
验证码 换一张
取 消