Error 7 The type or namespace name
‘SampleMain’ does not exist in the
namespace
‘System.Windows.Forms.DataVisualization.Charting.Utilities’
(are you missing an assembly
reference?)
i am getting this error on this line:
System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.MainForm mainForm = (System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.MainForm)this.ParentForm;
what am i doing wrong?
If you need help figuring out the ‘structure’ of the namespaces, use the Object Browser from within Visual studio or use Reflector to view what’s within the
System.Windows.Forms.DataVisualization.Charting.Utilitiesnamespace. This may help you gain an understanding as to what you can and cannot access within each.