User (Legacy) Posted October 29, 2006 Report Share Posted October 29, 2006 Hi, I tried to make a component - simply inherited from Chart class, something like this: using System; using System.ComponentModel; using ChartFX.WinForms; namespace MyApplication { public partial class MyChart : Chart { public MyChart() { InitializeComponent(); } public MyChart(IContainer container) { container.Add(this); InitializeComponent(); } } } but then when I added MyChart component instance to my form, it actually became instance of ChartFX.WinForms.Chart class, which is, I guess, not right. Well, I am still able to change a few lines in the code - to set the instance to be of type MyChart, but after that when I try to access the Visual Studio designer of MyChart by clicking for example "Select Chart Gallery", I get "Object reference not set to an instance of an object", and moreover, when I clicked "About ChartFX..." - Visual Studio crashed. What do you think of this? Regards, Slava Drozd. Link to comment Share on other sites More sharing options...
Software FX Posted October 30, 2006 Report Share Posted October 30, 2006 Deriving from Chart is not supported at design-time. In order to make our integration to Visual Studio work as it is, we had to do things that prevent this from working. Deriving from chart can be done at run-time. Francisco Padron Software FX Support Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.