VB6 calender question?

Posted on 2005-04-10
Last Modified: 2010-04-17
If i want to create a drop list control, when the user click it, then it will popup a calender and then user can select a date from there and then the date will show on the drop list as selected date, how please ?
Question by:lungwa
    LVL 14

    Accepted Solution


    goto Project Menu - > Components
    select   Microsoft Windows Common Controls-2  6.0

    now u will see four extra controls on ur tool box, from there select DTPicker Control and place it on ur Form
    Private Sub Command1_Click()
        MsgBox DTPicker1.Value
    End Sub
    Private Sub Form_Load()
        DTPicker1.Format = dtpCustom
        DTPicker1.CustomFormat = "DD-MMM-YYYY"
        DTPicker1.Value = Date
    End Sub

    LVL 14

    Expert Comment

    by:Shiju Sasidharan
    Grade B ?
    Not satisfied with the answer ??
    anyway, thank u

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    static class 3 44
    wefewf 2 28
    mergeTwo  challenge 13 53
    python sqlite question 11 25
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now