Results 1 to 2 of 2

Thread: diplay no date in the date time picker

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241
    anyone know how to display no date or have the date time picker come up with no date in it when starting up a program. My program comes up with fields displayed but blank and disabled. I would like to use the time picker and have the field come up disabled and blank.

    Any ideas??????

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Not the best of solutions, but you can add a ComboBox to your form (which looks like a DTPicker) and hide the DTPicker behind it. You would want to make the heights the same but unfortunately the only way to change the height of a ComboBox is to change its font and/or point size, so you'll need to experiment to get its height to be equal to the DTPicker height. Once having done, set Combo1.Visible=False, and put the following in your form's Load event.
    Code:
    Combo1.Left = DTPicker1.Left
    Combo1.Width = DTPicker1.Width
    Combo1.Top = DTPicker1.Top
    Combo1.Enabled = False
    Combo1.Text = ""
    Combo1.Visible = True

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width