Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default DTPicker Lock property

Is there a way to lock the DTPicker so that the value can't be changed? I
want to lock the DTPicker to prevent someone from accidentally making a
change to it. I was able to do that for the TextBoxes on the form but the
DTPicker does't have a property like that.
Is there a way to do that?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default DTPicker Lock property

Change the DTPicker's Enabled value from True to False. Of course, it will look washed out. If you
don't like that look, then store the Value and reassign it in one or more of the DTPicker's events.

HTH,
Bernie
MS Excel MVP


"Ayo" wrote in message
...
Is there a way to lock the DTPicker so that the value can't be changed? I
want to lock the DTPicker to prevent someone from accidentally making a
change to it. I was able to do that for the TextBoxes on the form but the
DTPicker does't have a property like that.
Is there a way to do that?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default DTPicker Lock property

--If you mean to lock at run time after the initial user selection; then why
not place a hidden text box and once the selection is made transfer that to a
text box and make is visible over dtpicker..

--If you mean althrough the user interaction then better place a text box
and display date formatted using Format(Date,"dd/m/yyyy") or any format which
you would prefer


If this post helps click Yes
---------------
Jacob Skaria


"Ayo" wrote:

Is there a way to lock the DTPicker so that the value can't be changed? I
want to lock the DTPicker to prevent someone from accidentally making a
change to it. I was able to do that for the TextBoxes on the form but the
DTPicker does't have a property like that.
Is there a way to do that?
Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DTPicker Bug Steve23 Excel Programming 0 June 26th 07 11:36 AM
DTpicker kj135 Excel Programming 2 June 1st 07 06:26 PM
DTPicker Syed Haider Ali[_37_] Excel Programming 0 July 11th 06 08:38 PM
Size bug with DTPicker Zorro[_3_] Excel Programming 0 May 11th 06 08:40 PM
set date on dtpicker jocke Excel Discussion (Misc queries) 0 November 29th 05 05:02 PM


All times are GMT +1. The time now is 06:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"