MS Date & Time Picker Control ver 6.0 
Author Message
 MS Date & Time Picker Control ver 6.0

Hi All,

Is it possible to stop the user entering data manually into this control.
I've had a look at the properties available and there doesn't seem to be an
obvious answer.

Can anyone help ?

Thanks

Adrian



Sun, 04 Aug 2002 03:00:00 GMT  
 MS Date & Time Picker Control ver 6.0
Adrian

a) If you want user not to entree value, set it's Enabled property to false.
Still you can change the value programmatically.

b) If you don't want user to directly enter the date numbers but still be
able to select click the date, use the event subroutine to cancel key
strokes:

Private Sub DTPicker1_KeyPress(KeyAscii As Integer)
    KeyAscii = 0
End Sub

Regards
Venkata Krishna


Quote:
> Hi All,

> Is it possible to stop the user entering data manually into this control.
> I've had a look at the properties available and there doesn't seem to be
an
> obvious answer.

> Can anyone help ?

> Thanks

> Adrian



Sun, 04 Aug 2002 03:00:00 GMT  
 MS Date & Time Picker Control ver 6.0
Many thanks Venkata....


Quote:
> Adrian

> a) If you want user not to entree value, set it's Enabled property to
false.
> Still you can change the value programmatically.

> b) If you don't want user to directly enter the date numbers but still be
> able to select click the date, use the event subroutine to cancel key
> strokes:

> Private Sub DTPicker1_KeyPress(KeyAscii As Integer)
>     KeyAscii = 0
> End Sub

> Regards
> Venkata Krishna



> > Hi All,

> > Is it possible to stop the user entering data manually into this
control.
> > I've had a look at the properties available and there doesn't seem to be
> an
> > obvious answer.

> > Can anyone help ?

> > Thanks

> > Adrian



Sun, 04 Aug 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Microsoft Date and Time Picker Control Version 6.0

2. Microsoft Date and Time Picker Control 6.0 (SP4)

3. Microsoft Date and Time Picker Control, Version 6.0

4. Date & Time Picker Control

5. Date Time Picker & Null dates

6. MS Date Time Picker Checkbox

7. FTP using MS InternetTransfer Control (ver 6.0)

8. Date&Time picker

9. MS Date Picker / Monthview Controls

10. Date/Time Picker control

11. Date/Time picker control?

12. Date and Time Picker Control

 

 
Powered by phpBB® Forum Software