Well, seeing as you wrote your own control, and have not posted code, I really don't see how we can help with this. If you want to disable a control, look it up and set it's disabled property ( from memory, it's disabled, not enabled ). But, I'm surprised you don't know this, if you've written a calendar control in javascript ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )