1
Answer

windows forms

Ask a question
kishore

kishore

14y
2.1k
1
  i created a form contains some textboxes and datetimepicker control and one button control.  Then i entered some data to textboxes and change the datetimepicker value, now i want to clear the textboxes and get the datetimepicker default value in same form when i click the button(named clear). so  i cleared the textboxes by using the code like(in button click event)
                                
                                        textbox1.text=string.empty;
                                        textbox2.text=string.empty;

then how to get the default value of the datetimepicker control  ?

Answers (1)