Jump to content
Software FX Community

PropertyGrid Error


chrisnolan
 Share

Recommended Posts

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 PropertyGrid

propGrid.CommandsVisibleIfAvailable =

True

propGrid.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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...