calender

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a textbox, when I double click on it I need to see a calendar and
when I select a date I need the date be in the textbox and calendar
disappears. How can I do this? Is there any sampel code?
Thanks,
Jim.
 
Hi Jim,

The TextBox control doesn't have a DoubleClick event. Usually you put a
small Button next to the TextBox and on clicking this button you launch a
MonthCalendar or a DateTimePicker and put the selected value from it into
the TextBox.

Happy coding!
Morten Wennevik [C# MVP]
 
I think you can use the DateTimePicker control instead of textbox. It
does the things you want.

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
I added DateTimePicker to my toolbox but it is not active even if I am on the
design view of my code.
 
Back
Top