Problem with PropertyGrid and DateTimePicker

  • Thread starter paul_bowman_3000
  • Start date

P

paul_bowman_3000

Hi

I have a problem using a DateTime or Date value in the propertygrid in
VS 2003 in a VB.net project.

I have displayed an object in the PropertyGrid that has a DateTime
value. When the property is clicked in the PropertyGrid the
DateTimePicker is displayed with the correct value. However if the Year
is clicked and the value is moved backwards in time using the UpDown
control provided the display of dates for the month is incorrect.

I have seen this behaviour in the VS IDE as well as in a form I have
built.

The DateTimePicker works correctly if it is embedded on a Windows Form.

Does anybody know what is wrong or is aware of a getround.

The problem is easy to reproduce:

Start a new Windows application
Create a basic class with a DateTime property
apply an instance of the class to the propertygrid
click the down arrow and go backwards in the years


If have not tested this in c#

Regards

Paul
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top