CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: DTPicker

  1. #1
    Join Date
    May 1999
    Location
    Bogotá, Colombia
    Posts
    37

    DTPicker

    Hi folks,

    What is the best way to assign the value in a DTPicker to a variable? Right now I have the following:

    Dim Date1 As Date

    Date1 = DTPicker1.Day & "/" & DTPicker1.Month _
    & "/"& DTPicker1.Year

    which works but is not very efficient. Is there any way to assign the entire value of the DTPicker to the variable?

    Thanks so much,

    Andrew




  2. #2
    Join Date
    Sep 1999
    Posts
    202

    Re: DTPicker

    >way to assign assign the entire value ...
    private Sub DTPicker1_Change()
    Dim Date1 as date
    Date1 = DTPicker1.Value
    Caption = Date1
    End Sub




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

Featured