Jump to content
Software FX Community

Simple component inherited from ChartFX.WinForms.Chart. Designer in VS doesn't work and even crashes VS.


User (Legacy)

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...