After I upgraded to the 1.6.5, I get the error below when I press the delete key to clear the date value of the datetimepicker control which is bound to a date field of a business object. Although I get this error, the database is being updated properly. Why is this error is occurring?
=======================================================================
Object reference not set to an instance of an object. Exception (NullReferenceException): Source="MicroFour StrataFrame UI"; Target=null; Tag=null; Message = "Object reference not set to an instance of an object." Environment: ThreadIdentity="" DateTime=["2008-04-29 16:31:15.908"] ThreadName=null WindowsIdentity="STRUSS\JPagley" ThreadId="10" DomainName="CMPR.vshost.exe" OSVersion=["Microsoft Windows NT 5.1.2600 Service Pack 2"] MachineName="1LPJPAGLEY" UserName="JPagley" Remaining Stack Trace - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - at MicroFour.StrataFrame.UI.Windows.Forms.DateTimePicker.CreateManualCaret() at MicroFour.StrataFrame.UI.Windows.Forms.DateTimePicker.OnGotFocus(EventArgs e) at System.Windows.Forms.Control.WmSetFocus(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.DateTimePicker.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m) at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Here is a 2 for 1 quick sample project
You will find 2 forms, one for testing the datetime picker problem when you try to delete its value and the other will show you the problem with the ListView Add button which will always stay Enabled when there is not parent record.
Note: You will need to be on the 1.6.6 beta in order for this assembly to properly work.
Hi Trent,
Yes, this assembly fixed the datetimepicker delete value problem.
Thanks.
P.S.
Where you able to test the 2nd form for the ListView issue? even thought it does not belong to this thread
I didn't run your sample as I already knew what you were trying to accomplish, so I haven't even tested it at this point. But you can load the assembly and see if you get what you want.