Date Picker changes location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!
I have a problem with MS Date Pickers, two of them on one form. Both Enabled
property is set to No in properties window. When CheckBox next to them is
checked, they are enabled by code:
DTPicker0.Enabled = True
DTPicker1.Enabled = True
Problem is that they show up over each other in top left corner of the form.
I tried to set their position in code:
DTPicker0.Top = 1.375
DTPicker0.Left = 1.625
DTPicker1.Top = 1.625
DTPicker1.Left = 1.625
,but this didn't work either. Why is is acting this way and haw can it be
corrected?
Thank you in advance!
 
You need to use the unit "twips" when you assigning the values to Top &
Left.

1" = 1440 twips
 
Back
Top