|
-
Apr 25th, 2013, 05:48 PM
#1
Thread Starter
Hyperactive Member
Unable to programmically update points on a Chart in vb 2010
I am using vb 2010 in VS 2010 Express.
I have a Chart control which is named Chart1.
Imports System.Windows.Forms.DataVisualization.Charting
I tried to change one of the Title lines with the following code:
Chart1.titles.SpNameTitle.text = "Tom Jones"
I am getting this error on the Chart1 part of the above code: 'Chart1' is not defined. It may be inaccessable due to it's protection level.
How can that be? My chart is named Chart1?
Last edited by DexterRose; Apr 25th, 2013 at 06:19 PM.
-
Apr 25th, 2013, 06:42 PM
#2
Re: Unable to programmically update points on a Chart in vb 2010
The error doesn't sound right for my recommendation, but a chart uses a Titles collection to hold multiple titles. Try the following...
Code:
Chart1.Titles(0).text = "Tom Jones"
kevin
ps.. Tom Jones is one cool dude
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Apr 25th, 2013, 07:37 PM
#3
Thread Starter
Hyperactive Member
RESOLVED: Unable to programmically update points on a Chart in vb 2010
I solved my own problem.
As I was stepping out of the shower, it occured to me that the chart control was corrupted. So I deleted the Chart1 control and added it back and everything is fine.
Sorry about the time waster!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|