Treeview ActiveX Mouse errors

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a treeview on a form that works well on some machines and throws
errors on others. On the machines it throws the errors it still works fine
it just give errors everytime you expend or click on a node. The error
change but it all relates to mouse events. the strange thing is that I have
no assigned mouse events. I am stumped. It the Control wasn't available it
wouldn't work at all, but it works fine it just throws errors. Since I have
no mouse events coded I can't error trap.

Any ideas?

Thanks!
 
Maybe a pTarget assignment...(?) potentially that coordinated with a faulty
node indexing scheme. Are the OCX from the same distributor and version?
 
Most of the errors I see with the Treeview relate to case sensitivity. The
Treeview, is, I believe, the only Windows/Access based control that is case
sensitive. The error will always seem random, and will always happen when
you click on a node to expand it and there is an incorrectly cased value.

The other error is see with the Treeview is that comctl32.ocx is either the
wrong version, or needs to be re-registered, Start ... Run then type:

regsvr.exe "C:\Windows\system32\comctl32.ocx"

(assuming that the location)
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 
Thanks for the reply. I have tried reregistering the OCX with all the
different versions as on the machine where it works but no luck. It is just
weird that the errors don't occur on one machine and that the treeview
actually works fine, after you click okay to the error. All actions seem to
through an error like expand error, mouse button error, etc.

Dave
 
Thanks for the idea, I will look at the case sensitivity. It is weird how
some machines it works fine and others not. I am thinking versions, but
haven't been able to get any further. When I tried your registration
statement below I get an error that it can't find regsvr.exe?

Thanks again,
Dave
 
Here is the latest update. I stepped through the code and the error is
thrown after the treeview control is totally loaded. So I added blank error
handlers on the Form and Detail Mouse events and it is not triggered there.
So I don't know what causes it. Also, what is weird is that once an error is
thrown it will not trigger again. So, once the expand error occurs or Mouse
Over occurs it will never occur again the the control works fine. Any ideas?

Thanks!
Dave
 
Back
Top