Treeview Control: No Text Displaying

N

NoVAFolk

I have implemented a treeview control in Access 2K under XP that is intended
to display, at parent nodes, meeting types and, at the child nodes, specific
meeting dates and times. The treeview is updated as new meetings are added
and updated (meetings are not deleted). On some machines the treeview works
properly, but on many only the outline of the nodes appear. That is, the plus
symbol and child nodes do not contain any text.

Initially I thought that the problem was improperly registered mscomctl.ocx
and inserted code to (DllRegisterServer) register it programmatically.
However, this has not had any effect. Are there other ActiveX controls that I
should insure are registered?

I would appreciate any suggestions.
 
A

Alex Dybenko

Hi,
check that OCX version is the same on all PCs, and make sure that you do no
fill treeview control in form's open event, use Load event instead
 
N

NoVAFolk

Alex:

Thank you!

Your suggestion to use the form's Load event soved the problem! Your
solution raises the question: Is it always generally better to use the load
event rather than the Open event of a form where there's a reasonable choice
between the two?
 
A

Alex Dybenko

Hi,
yes, for activeX controls - you have to always use Load event instead of
open
Open event - is good for tasks, which have to be done before form loaded -
assign recordsource, etc
 

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