如何显示从datepicker到文本框的选定日期 [英] how to display selected date from datepicker to textbox
问题描述
PLEase帮助
推荐答案
您好vj789,
Hi vj789,
感谢您在此发帖。
>> 如何显示从datepicker到文本框的所选日期
>>how to display selected date from datepicker to textbox
文本框是否意味着WinForm文本框控件? 如果是,您可以尝试以下步骤。
Does textbox means WinForm textbox control? If it is, you could try these steps below.
1。获取 DatePicker :: SelectedDate
财产。
1. Get DatePicker::SelectedDate Property.
2。使用DateTime :: ToString方法()或
的其他转换方法 日期时间结构
将DateTime更改为字符串值。
2. Use DateTime::ToString Method () or other conversion method of DateTime Structure to change DateTime into string value.
3。将此字符串值设置为 TextBox :: Text
财产。
3. Set this string value into TextBox::Text Property.
希望这可以为您提供帮助。
Hope this could be help of you.
这里有MSDN中的Winform论坛。如果您愿意,我会将此案例移至WinForm论坛以获得更好的支持。
您的理解与合作将不胜感激。
Your understanding and cooperation will be grateful.
最诚挚的问候,
Sera Yu
这篇关于如何显示从datepicker到文本框的选定日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!