Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to add DateTime picker
Message
From
28/10/2006 08:42:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165263
Message ID:
01165267
Views:
8
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform