Writing a date in a comboBox

This is a discussion on Writing a date in a comboBox within the C# Programming forums, part of the General Programming Boards category; If you have a comboBox on a Form that you will write dates in, in this format: YYYY/MM/DD What I ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    383

    Writing a date in a comboBox

    If you have a comboBox on a Form that you will write dates in, in this format:

    YYYY/MM/DD

    What I wonder here is this. As default I know how to load in so the comboBox will look like this:

    ----/--/--

    Now my question is this. Is it possible when begin to write the date each ' - ' will be replaced with the number you are writing and when you have written in this example the whole year it will jump over the '/' so you dont need to write this yourself.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    383
    I did find the Masked TextBox for this purpose. This might work like this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Advancing day by day until it matches a second date
    By nhubred in forum C++ Programming
    Replies: 1
    Last Post: 05-30-2009, 08:55 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  4. CDate Class - handle date manipulation simply
    By LuckY in forum C++ Programming
    Replies: 5
    Last Post: 07-16-2003, 08:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21