We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NullReferenceException in DateTimePickerAdv.Value

Thread ID:

Created:

Updated:

Platform:

Replies:

41311 Feb 27,2006 05:58 PM UTC Mar 10,2006 03:07 PM UTC Windows Forms 4
loading
Tags: Tools
Administrator [Syncfusion]
Asked On February 27, 2006 05:58 PM UTC

When I try to set the Value of a date time picker, I get a null pointer exception. The code couldn''t be any simpler: this.dateTimePicker.Value = new System.DateTime(2005, 6, 8, 16, 3, 0, 880); Here''s the stack trace: System.NullReferenceException occurred Message="Object reference not set to an instance of an object." Source="Syncfusion.Tools.Windows" StackTrace: at Syncfusion.Windows.Forms.Tools.DateTimePickerAdv.set_Value(DateTime value) at (mycode).InitializeComponent() in (mysource).cs:line 639 We just upgraded to Visual Studio 2005 and the latest Syncfusion distribution. This worked fine in Visual Studio 2003 with an older version of Syncfusion. It also works fine in a simple test app, but not in our full application. Any ideas?

Anupama Roy [Syncfusion]
Replied On February 28, 2006 01:05 PM UTC

Hi Hurley, This was an issue with DateTimePickerAdv in our Beta versions and we had put a fix for this in final release which worked fine so far.I am looking into this and let you know regarding this. Thank you for your feedback. Regards, Anu.

Administrator [Syncfusion]
Replied On March 3, 2006 03:36 PM UTC

If I comment out this line: dateDateTimePicker.UseCurrentCulture = true; it will run without throwing an exception but the display is blank. Adding this line: dateDateTimePicker.CustomFormat = "dd MMM yyyy"; brings back the text. It was trail and error on each line to figure that out. Previous environment: Visual Studio 2003, Syncfusion 3.0.1.0 New environment: Visual Studio 2005, Syncfusion 4.1.0.50

Anupama Roy [Syncfusion]
Replied On March 6, 2006 06:07 AM UTC

Hi, Thank you for your effort. However,I am unable to reproduce the issue here in my sample.I can proceed furthur only if I have a sample that reproduces the issue.I am attaching the sample I have worked out here. Could you please run this at your end and let me know how it goes? We would appreciate if you can modify this sample and send it back to us for further investigation. Thanks again for choosing Syncfusion. Regards, Anu.

WindowsApplication122.zip

Administrator [Syncfusion]
Replied On March 10, 2006 03:07 PM UTC

I was unable to open the attachment in Visual Studio. Try the attached solution. >Hi, > >Thank you for your effort. > >However,I am unable to reproduce the issue here in my sample.I can proceed furthur only if I have a sample that reproduces the issue.I am attaching the sample I have worked out here. > >Could you please run this at your end and let me know how it goes? We would appreciate if you can modify this sample and send it back to us for further investigation. > >Thanks again for choosing Syncfusion. > >Regards, > >Anu. >

WindowsApplication122.zip

DateTimePickerProblem.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;