Solved DateTimePicker - still date dropdown

Posted on 2011-10-17
Last Modified: 2012-05-12

I have put a DateTimePicker on my Windows Form and set the format to Time
When I click on the dropdown it still brings up a calendar. Is there a way to change this
so that the user can only select the time?

Question by:murbro
    LVL 48

    Assisted Solution

    Set the ShowUpDown property to True
    LVL 9

    Accepted Solution

    datetimepicker1.Format = DateTimePickerFormat.Custom
    datetimepicker1.CustomFormat = "HH:mm"
    datetimepicker1.ShowUpDown = True

    Author Closing Comment

    thanks very much

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    755 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

    18 Experts available now in Live!

    Get 1:1 Help Now