Solved

picture box to plot a chart

Posted on 2000-04-01
8
461 Views
Last Modified: 2008-03-17
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

0
Comment
Question by:micha71
8 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 400 total points
ID: 2676884
you may find this interesting:
http://www.vbsquare.com/demos/graph-demo/
0
 

Expert Comment

by:TheMask
ID: 2676902
What type of chart you want to use ?
0
 

Author Comment

by:micha71
ID: 2676981
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
 
LVL 4

Expert Comment

by:gcs001
ID: 2677235
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:micha71
ID: 2677314
sorry it doesn't work. setting to invisible makes it worst and setting the enabled property is the same as before
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 2677322
are you refreshing it everytime it changes?  does its repaint property make it any better?
0
 

Author Comment

by:micha71
ID: 2679132
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
 
LVL 28

Expert Comment

by:AzraSound
ID: 2679140
Anytime  =)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now