borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (add new records Foxpro DBF table VB6)Next Topic (Get paid to help me pass this VB class) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Making text bold and set colors on MS Chart control
Poster Message
iliekater
Level: Master

Registered: 04-02-2005
Posts: 122

icon 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 :
MyForm.MSChart.Footnote.Location.LocationType = VtChLocationTypeBottom
MyForm.MSChart.Footnote.Font.Bold = True

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]
07-05-2007 at 07:39 PM
View Profile Send Email to User Show All Posts | Quote Reply
aak_neo
Level: Scholar


Registered: 11-02-2007
Posts: 30
icon 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.

check out this example

http://www.freevbcode.com/ShowCode.Asp?ID=1538

for all possible manipulations  
  

____________________________
You never see past the choices you don't understand

08-05-2007 at 05:35 AM
View Profile Send Email to User Show All Posts | Quote Reply
iliekater
Level: Master

Registered: 04-02-2005
Posts: 122
icon 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 .

08-05-2007 at 05:44 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Making text bold and set colors on MS Chart control
Previous Topic (add new records Foxpro DBF table VB6)Next Topic (Get paid to help me pass this VB class) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder