I have tried everything I know to color the whole chart and not just the chart panel and have been unsuccessful.
float[] relativeIntensities = { 0.7f, 0.5f, 0.7f, 0.5f, 0.1f };
float[] relativePositions = { 0.0f, 0.2f, 0.4f, 0.8f, 1.0f };
Blend myBlend = new Blend();
myBlend.Factors = relativeIntensities;
myBlend.Positions = relativePositions;
LinearGradientBrush linGrBrush = new LinearGradientBrush (
new Point(0, bounds.X),
new Point(0,bounds.Right),
Color1,
Color2);
linGrBrush.Blend = myBlend;
int myheight = ChartControl.Bottom;// - bounds.Height
Pen pen = new Pen(linGrBrush);
graphics.FillRectangle(linGrBrush, bounds.X , bounds.Y, ChartControl.Right,ChartControl.Bottom );
Could you give me an idea of how to get the ENTIRE form width and height? It's doing my head in.

Comment