Results 1 to 3 of 3

Thread: [RESOLVED] DateTimePicker value changes

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2010
    Posts
    4

    Resolved [RESOLVED] DateTimePicker value changes

    I support a desktop application containing datetimepicker components.
    A child form loads within an MDIcontainer, updating components from data retrieved from a SQL table, allowing users to make modifications.

    A text component hides the current form and displays another form.
    When the user returns from the other form, one of the datetimepicker component is unchecked and the date is set to the current date. Tracing through this application, I do not hit any code that resets this component.
    Other datetimepickers located in my current form are not affected.

    I'm providing the routine used to display another form, and the routine used to return to the current form.

    Private Sub txtPubNo_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtPubNo.DoubleClick
    Me.Hide()
    SetCalledFromAForm = True
    mdiPads.ActivateMDIChildForm(frmPublicationTitleView)
    End Sub

    Private Sub cmdPubNoViewCancel_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdPubNoViewCancel.Click
    frmPADSEntry.Show()
    frmPADSEntry.StartPosition = FormStartPosition.CenterParent
    frmPADSEntry.Location = New Point(130, 10)
    Me.Close()
    End Sub

    any ideas on this..thanx

  2. #2

    Thread Starter
    New Member
    Join Date
    Oct 2010
    Posts
    4

    Talking Re: DateTimePicker value changes

    Duh.......

    Problem solved.

    Did not have DateTimePicker Property Checked set to true.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: DateTimePicker value changes

    Please use the Thread Tools menu to mark your thread Resolved.

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