>I've just started having a problem yesterday morning in which I can't add a MS DateTime picker ActiveX control to a form. Actually, I can physically add it but I can't make it active. I have made sure that it is visibled and enabled, and that the control is on top (Send to front) so it is not somehow masked behind another control. The form is fairly complex, with a large number of various other controls already on it. It also does not matter if the "Themes" setting for the form is checked or not.
>
>I can create a new form, put the DateTime picker on it and run it with no problem. As a result, I don't believe that a .DLL has become corrupted.
>
>If anyone has any ideas, I'd appreciate hearing about them. Thanks!
If you add a temporary button on form with click code:
thisform.myDTPicker.object.Enabled = .t.
Does it work?
If value shows dimmed, it might be .null. rather then being simply disabled. Setting to a valid datetime should enable then (or show its checkbox). ie:
thisform.myDTPicker.object.Value = datetime()
Cetin