wildfire1982 Posted January 7, 2004 Posted January 7, 2004 Hello folks, does anyone know how to retrieve the colour of the column in an mschart control. I have a varying number of columns, where the chart creates a colour to represent this. Anyone know how i can get hold of it? Thanks Chris Quote Chris
wildfire1982 Posted January 7, 2004 Author Posted January 7, 2004 Ellow again, I finally managed to do it. Its not the nicest looking code but it works so just in case anyone else needed to do it, here it is. Dim colorThing As Color = Color.FromArgb(showResults.AxMSChart1.Plot.SeriesCollection(loopcounterProps).DataPoints(-1).Brush.FillColor.Red, showResults.AxMSChart1.Plot.SeriesCollection(loopcounterProps).DataPoints(-1).Brush.FillColor.Green, showResults.AxMSChart1.Plot.SeriesCollection(loopcounterProps).DataPoints(-1).Brush.FillColor.Blue) showResults.RichTextBox1.SelectionColor = colorThing It was needed for a sort of legend style thing which i needed more control. Quote Chris
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.