Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Picker 1

Status
Not open for further replies.

Fboo

Programmer
May 6, 2003
13
CA
I have a date picker on a form which at some point can be disabled. Everything works fine until I re-enable it using the '.enabled' property. The date picker box then jumps to the top left hand corner of my form. Does anyone know why? I just don't get it. It's driving me nuts!
 
Had the same problem myself, seems to be peculiar to some ActiveX controls.

To fix, set the control's 'Top' property after re-enabling, and it seems to fix the 'Left' setting as well.

Code:
     Me.DTPicker.Enabled = True
     Me.DTPicker.Top = Me.DTPicker.Top

Brad
 
Wow, it worked! I would have never thought of doing that. Thanks soooooo much! Star for you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top