picture box to plot a chart

hi experts,

I tried to plot data to a mschart control. I have to refresh the
chart control a lot time. but if I do this, the chart flickers.

I have read that I can use the picture box control.

can you give me an example of creating a chart with the picture
box control?

thanks

micha71Asked:
Who is Participating?
 
AzraSoundConnect With a Mentor Commented:
you may find this interesting:
http://www.vbsquare.com/demos/graph-demo/
0
 
TheMaskCommented:
What type of chart you want to use ?
0
 
micha71Author Commented:
simple line charts containing three graphs
two linear (constant value vor max/min range)
 and one sine like.

do you have another suggestion to realize the
chart?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
gcs001Commented:
You could try to disable or make the chart invisible each time you want to refresh it and then re-enable/visible once refreshed - this should fix the flickering problem.

Abut using the picture box as a chart I'm not too sure how you would go about doing this, but I'm certain it must be possible.  Probably a lot of coding though, as you would have to probably draw all the lins yourself (within code).
0
 
micha71Author Commented:
sorry it doesn't work. setting to invisible makes it worst and setting the enabled property is the same as before
0
 
AzraSoundCommented:
are you refreshing it everytime it changes?  does its repaint property make it any better?
0
 
micha71Author Commented:
the features for the gaphlite control are very
poor, but its better then the flickering of the
chart control.

it was a very helpful tip.

lot thanks
0
 
AzraSoundCommented:
Anytime  =)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.