A bug about System.Windows.Forms.DateTimePicker

Source: Internet
Author: User

Today received feedback from customers, said their system can not query the February 2017 bill, because there is no way to choose February 2017, there is no way to choose February??? , immediately open VS, run the system, should be last year's system, test data is also last year, on the February 2016 data, all OK AH.

Let the customer remote, operation to me, I will not superstitious, a remote also really, January and March can choose and input, but February, whether it is manual input or select input, is a failure, hell. Disconnect remote Local tried, true input failed.

Tossing a morning, is not found any problem, is it the hell? Direct degrees Niang, see February 2017 is not really haunted, 29 days? Not 28 days? Did you go through, or did you go crazy? Good is 29 days. Alas, Microsoft did not expect the truth to be broken in the 28 days of February.

I'm using a. Net4.0,datetimepicker configuration is custom, yyyy mm month, showupdown=true

And then reported to try the mood, try to set the format to yyyy mm month DD day, found February time input no problem,

Set Showupdown to false,2 month time input also no problem,

Set Showupdown to True, format to yyyy mm month, February Enter and select Page no problem

It appears that only the Showupdown is set to False, the format is set to yyyy mm months when the February will not be able to choose the situation.

The workaround is to set the custom display to yyyy mm DD day, and then shorten the control so that the customer sees only the month and year portion.

I don't know if there's any other way out. Want to know tell the next.

A bug about System.Windows.Forms.DateTimePicker

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.