I have a chart control on my form and if I just execute my program and then click on X to terminate I get a
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object." Error message (file attached) during the
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
My chartControl1 is visible=false initialy.
If I set it to visible=true it works fine.
Does any one have any ideas?
nullEx.zip