chrisnolan Posted October 15, 2007 Report Share Posted October 15, 2007 I have upgraded from 6.2 to 7 and I am now having a problem using the chart control with PropertyGrid. When I set the SelectedObject property I get the error 'Object reference not set to an instance of an object.' Below is my code. The properties are sorted alphabetically and it is whatever comes after CausesValidation that is causing the problem. Any ideas? I see from the related posts that SoftwareFX suggest that designtime use is not supported, however this is something we have done successfully in version 6.2. I do hope that we have not upgraded to find that something has been removed that we use. Me .propGrid = New PropertyGridpropGrid.CommandsVisibleIfAvailable = TruepropGrid.Dock = DockStyle.Fill propGrid.PropertySort = PropertySort.Alphabetical Me.panelProperties.Controls.Add(propGrid) propGrid.BringToFront() propGrid.SelectedObject = Me.Chart_new Link to comment Share on other sites More sharing options...
chrisnolan Posted October 16, 2007 Author Report Share Posted October 16, 2007 Please can I have a response about this. Your offices are not open when I am in the office as I am based in Melbourne, Australia. Link to comment Share on other sites More sharing options...
Frank Posted October 17, 2007 Report Share Posted October 17, 2007 I do not get this error when I run this code. I get a property grid. No exceptions. Make sure you are using the latest Chart FX Service Pack. As for the design time use, both Chart FX 6.2 and Chart FX 7 have license restrictions on how they can be used and deployed. Design-time use is one of such restrictions. Please review the license agreements for details. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.