DateTime picker (again!)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #1

    DateTime picker (again!)

    Has anyone found a (convenient) way around the inability to change .Value of a dtpicker while .Visible is False?

    I can work around it, probably by creating Public Sub SetValue(ctl As Control, ByVal NewValue As Date) but would prefer less of a kludge.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    #2
    Sorry - nothing here :(

    Comment

    • MMcCarthy
      Recognized Expert MVP
      • Aug 2006
      • 14387

      #3
      Originally posted by Killer42
      Has anyone found a (convenient) way around the inability to change .Value of a dtpicker while .Visible is False?

      I can work around it, probably by creating Public Sub SetValue(ctl As Control, ByVal NewValue As Date) but would prefer less of a kludge.
      Have you tried making the change without .Value. Just

      Me.txtBoxName = newDate

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by mmccarthy
        Have you tried making the change without .Value. Just
        Me.txtBoxName = newDate
        Nope. I'll give it a try, but I'll be quite surprised if it works. All that's doing is using the default property, which in the case of a datetime picker, is presumably Value.

        Thanks for the suggestion, anyway. Will let you know what happens.

        Comment

        Working...