Strange one in MSChart

J

Just_a_fan

I was working with MSChart, modifying one of the graphs and decided I
wanted this particular chart to have an auto scale. I worked quite a
while with it, uttered a few obscenities directed at the usual suspects
and finally found I have to do an Application.DoEvents to get it to
honor the numbers is it telling it knows but ignores (charts the old
scale) until the next update.

Of course, by the next update, the message queue has been cleared and it
honors the new settings.

I still think that MSChart is somewhat of the ugly, stupid stepchild of
VB. It is VERY POORLY documented and (somewhat because of the poor
documentation) is very difficult to work with.

I do have it working after a few hours tinkering. Just a little tickler
for anyone else who finds MSChart seems to be ignoring your input -- put
a DoEvents in and it will catch up with you. It is the only control
that I have ever had to do that with and it took me a while to decide
that was the cure. Very foreign idea for me.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top