DTPicker control moving - bug?

DaveJHPT

Registered User.
Local time
Today, 21:14
Joined
Mar 17, 2005
Messages
64
Hi

I'm having trouble using the DTPicker control on forms in Access 2000.

For some reason I can't work out, some DTPicker controls are moving themselves to the top left hand corner of the form when it loads. Not all the DTPickers do this, and they don't do it all the time.

Is this a bug in the control or have I missed something?

(Have searched for similar posts but can't find anything.)

Hoping somebody can help - thanks!

Dave
 
More...

I've now narrowed down exactly when this happens - it's when the DTPicker is enabled again after it has been disabled.

I'm currently getting round this simply by storing the position and setting .Top and . Left again after enabling the DTPicker.

However, I now have a more serious problem: on re-enabling the DTPicker, the Change event is no longer called when the value is changed,
and I can't see how to code round that if the event isn't being called.

Has anybody any ideas how I can fix this, or find some way of coding round it?

Thanks

Dave
 
can you see the code for the dtpicker

does the form close, or just become invisible when you "close it". there may be code in there that tries to move it to an unoccupied area of the screen, when it becomes visible.

again if you can see the code, you may be able to see why the change event isnt doing anything.

if not, perhaps you need a different datepicker - theres loads around.
 
I'm not closing or hiding the form, just disabling the DTPicker (based on the value of other fields)

When it is re-enabled (again depending on the value of other fields), it seems to lose track of some of its properties and methods. The events that re-enable it certainly dont have any code in them that move it as well as re-enabling it.

What I find the oddest thing is that its Change event no longer gets called. Is there a property somewhere that is disabling the Change event, I wonder...

Dave
 
how do you "disable" the datepicker. It seems to me that a form is either visble and therefore available for interaction, or closed/invisible, and therefore not.
 
how do you "disable" the datepicker. It seems to me that a form is either visble and therefore available for interaction, or closed/invisible, and therefore not.
The datepicker is an ActiveX control, not a form.
 
i see - so its hard to know what its doing

i use a slightly modified version of a calendar form.
 
Thanks for trying, chaps. It must have been a bug in the control - I've found a later version of mscomct2.ocx and it works fine now.

Thanks again.

Dave
 

Users who are viewing this thread

Back
Top Bottom