Link to home
Start Free TrialLog in
Avatar of micha71
micha71

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheMask
TheMask

What type of chart you want to use ?
Avatar of micha71

ASKER

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?
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).
Avatar of micha71

ASKER

sorry it doesn't work. setting to invisible makes it worst and setting the enabled property is the same as before
are you refreshing it everytime it changes?  does its repaint property make it any better?
Avatar of micha71

ASKER

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
Anytime  =)