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 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.