Making text bold and set colors on MS Chart control
Recently I discovered the MSChart control . It looks great , but I have a problem . I want to show a bold text at the bottom of the control , so I use the following code :
Although I manage to specify the position of the text (at the bottom) , I get an error message at the second line saying :
quote:Property is write only .
What does it mean ? I press the Help button , but MSDN informs that I should create my own functions for handling the MSChart's errors . Yeah , thanks alot .
The strange thing is that I can actually make the text bold through the manual procedure (right click on the control > Properties > and so on ...) . But I want to do that by code . Is there a way ?
The other thing I can't do by code (but can do manually - but it's not what I want) , is to set the color for each of the columns . Does anyone know ho this is possible ?
[Edited by iliekater on 07-05-2007 at 01:18 PM GMT]
Re: Making text bold and set colors on MS Chart control
u r right it gives an error. but can u tell the reason u want that text to get bold at run time only. also why don't u try putting a label control on chart at footnote position. u can then do lots of manipulations. but then this is just a temporary solution.
i have also faced similar problems while working on chart but hey u can do lots of other manipulations like change chart type 2d,3d,pie, take a picture etc. at run time.
Re: Making text bold and set colors on MS Chart control
Well , I want to do that becouse from painting to painting I need footnotes , other moreand other less important . However , the Label method you specified can be helpful . Thanks .