I am working on a form which has approx 40 controls and a great large mass of code. I put in a feature to emulate datetimepicker controls (dropdown boxes with a built in calandar) by using mscal.ocx. These calandars stay hidden until the user clicks on the associated dropdownbox and are rehidden when the user clicks on the calendar control. What I need is if the user clicks on anything other than the calendar while the calendar is not hidden, the calendar should become hidden. I have tried using the lostfocus method. That didn't work because that stupid method temporarily brings focus back to the control which lost focus and one cannot hide a control which has focus. Furthermore this method cannot bring focus to another control because doing so would result in an infinite looping of control focusings. I have also tried hiding all 3 of my kludgy date calandar comboboxes by creating an onclick procedure for all other 37 controls on the form without avail. Any ideas???