Hi
See my DatePicker control . Download #
25398 >Barbara
>
>Sorry for the confusion. Let me see if I can explain what I am trying to do.
>
>I have a date control on form1 that has a button beside it to pop up a calendar. The calendar ocx is in another form that I would like to position underneath the date control. By adding the form1.top+objtoclient(datecontrol)+datecontrol.height to the calendarform.top I don�t get to where I want to be. It also seems to be different if the datecontrol is on a pageframe. How do I calculate the calendar top value?
>
>Thanks.
>
>
>>>Barbara,
>>>
>>>The form1.top value has nothing to do with form2.top. I need to find where to set form2.top so it will be positioned where I want it over form1.
>>>
>>
>>That still doesn't answer my question as to why you're asking about _screen.height. Whether a toolbar is visible or not, I've found that if you set form2's Top property to Form1's Top property-4, they'll line up.