如何使用vb.net中的清除按钮清除datetimepicker [英] how clear a datetimepicker using clear button in vb.net
本文介绍了如何使用vb.net中的清除按钮清除datetimepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您能提供使用vb中的清除按钮清除datetimepicker的解决方案吗?
似乎有更多的人有这个问题,这是他们提出的解决方案.
http://social.msdn.microsoft.com/论坛/en-us/csharpgeneral/thread/69FD487E-5A04-4ADE-848D-C2669EFFE10B [ http://social.msdn.microsoft.com/Forums/zh/winforms/thread/ee0c5fbe-8d18-4899-8df2-46535b570bb4 [ 解决方案
It seems like more people have this problem, this is a solution that they propose.
http://social.msdn.microsoft.com/forums/en-us/csharpgeneral/thread/69FD487E-5A04-4ADE-848D-C2669EFFE10B[^]
Add a Label (or some control) as a placeholder for the datetimepicker.. When the user clicks on the placeholder contol, .Hide() that control and .Show() your datetimepicker.
But if you want to have a decent solution, I think you''ll have to use this control, that''s based on DateTimePicker:
http://social.msdn.microsoft.com/Forums/en/winforms/thread/ee0c5fbe-8d18-4899-8df2-46535b570bb4[^]
The only problem is, it''s in C#... I hope you''ll be able to translate it to VB.NET.
But there''s online C# to VB.NET code converters that can help you a little.
这篇关于如何使用vb.net中的清除按钮清除datetimepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文