Results 1 to 17 of 17

Thread: Question On Date Picker Control

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Question On Date Picker Control

    Quote Originally Posted by brucevde
    The gray circle signifies the current Value of the date picker. There is no way to get rid of it by setting a property. There may be a way using the API or Subclassing the control.
    Which means you should be able to get rid of it by doing
    VB Code:
    1. Private Sub Form_Load()
    2. DTPicker1.Value = Format(Now, "mm/dd/yyyy")
    3. End Sub

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Question On Date Picker Control

    Quote Originally Posted by Joacim Andersson
    You could also use the CloseUp event that is fired when the drop-down is closed.
    That also doesn't help if the user simply punches in the date (which is also why the changed event is better than the click even to detect changes.)


    Quote Originally Posted by Hack
    Which means you should be able to get rid of it by doing
    VB Code:
    1. Private Sub Form_Load()
    2. DTPicker1.Value = Format(Now, "mm/dd/yyyy")
    3. End Sub
    *stares incredulously (sp?) at that and goes HUH?!*

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Question On Date Picker Control

    Quote Originally Posted by techgnome
    *stares incredulously (sp?) at that and goes HUH?!*Tg
    Close your mouth, you will attract files...

    What is so hard to understand? If you set the default value to today, then you get the little red circle, but not the little gray circle.

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Question On Date Picker Control

    Quote Originally Posted by Hack
    Close your mouth, you will attract files...
    That only works for tri-occular frogs... not gnomes....

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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