Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a Click() event for a Calendar window in a form?

Status
Not open for further replies.

tristero

Programmer
Jan 24, 2003
95
US
how would i catch it?

calendar.click():

Code:
thisform.showdate.caption = DTOC(_DIARYDATE)

Dan Trenz
Ann Arbor, MI
 

_DIARYDATE is a system variable, you don't really need the calendar to use it.

You can use:
thisform.caption = DTOC(_DIARYDATE)

Without bring up the calendar.
The problem with the calendar is, that is not top-level (or in other words once you bring up, the code continues and does not allow you to choose a date to set the caption). So ou may have to do it in two steps:
one button that brings the calendar and another button to set the caption after the dat was selected.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top