|
-
Sep 11th, 2000, 04:45 AM
#13
Fanatic Member
Populating charts is often slower than populating Listviews but with some experimentation you can dramatically speed up the process.
Simple methods are to use the WITH ... END WITH for the loop so that you're not continually referencing the control. Also be sure not to have DoEvents in every loop iteration,
Try
If LoopVar Mod 100 = 0 then
DoEvents
End if
Also, and this can have either a hugh efect or a not work at all depending on the rest of your code, changing visibilty of the graph to false, loop to populate your data then set visibility to true again.
(Normally I don't go hijacking threads like this but this tiresome VB vs XX topic has been covered in so many threads that people are better off reading through those ones.) If you want to use a different compiler, great, else don't, if you want to know their strengths and weaknesses look at more forums than just this one and even better try the other languages out, different people prefer different things... There, end of topic!
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
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
|