单击时,Treeview nodeClick不会触发 [英] Treeview nodeClick doesn't fire when clicked

查看:384
本文介绍了单击时,Treeview nodeClick不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在MS Access表单中使用treeview公共控件。我遇到过用户的情况,当他点击树中的节点时,nodeclick()事件不会触发,但树仍然可以完全导航。他可以打开和关闭所有分支,但是获取nodeclick()的后台代码不会触发。然而,我们在屏幕上有按钮,通过代码,找到下一个节点并点击按钮。它通过VBA。这种方法很好,并且在这种情况下生成的nodeclick()代码 触发,而不是当用户使用鼠标点击它时。


我正在努力解决这个问题。发生错误是我可以追踪的一件事,但是当事情没有发生并且没有触发任何事件时,我如何追踪失败的位置?顺便说一句,这是一台Windows XP / Office 2007 PC。


背景:

我们受到MS12-060补丁问题的严重打击,如下所示KB: http://support.microsoft.com/kb/2748410

我们还在处理自8月份以来首次打开数据库的用户,并发现它不起作用。在解决问题时,另一位管理员做了某事。到了PC。不幸的是我不知道他们做了什么,但我知道它与MSCOMCTL.OCX库有关,这是与treeview来源完全相同的库。我已经确认了文件大小/日期,它仍然是正确的通用控件库版本。否则整个数据库功能正常,工作正常。


任何想法?

We are using the treeview common control in an MS Access form. I''ve encountered a situation with a user where when he clicks a node in the tree, the nodeclick() event does not fire, yet the tree is still fully navigable. He can open and close all the branches, but the background code that picks up the nodeclick() just doesn''t fire. However we have buttons on the screen that, thru code, find the next node and "click" it through VBA. That works fine and the resulting nodeclick() code does fire in that case, just not when the user uses the mouse to click it.

I''m struggling for how to even begin troubleshooting this. It''s one thing to have an error happen that I can trace thru, but when something doesn''t happen and no event is triggered, how might I track down where the failure is? BTW, this is a Windows XP/Office 2007 PC.

BACKGROUND:
We were hit hard by the MS12-060 patch issue as documented in the following KB: http://support.microsoft.com/kb/2748410
We''re still dealing with users that are opening the database for the first time since August and discover it won''t work. In troubleshooting the problem, another administrator did "something" to the PC. Unfortunately I don''t know what they did but I do know it had to do with the MSCOMCTL.OCX library, which is the exact same library the treeview comes from. I''ve confirmed the filesize/date and it is still the correct common controls library version. Otherwise the entire database is functional and working fine.

Any ideas?

推荐答案

具有信任加载项的设置被任何机会重置? A2007使得安全性非常复杂,可以理智地管理,这是一个可能导致此类症状的问题。
Has the setting to trust add-ins been reset by any chance? A2007 makes security very complicated to manage sensibly, and this is one issue that might cause such symptoms.


嗯,这是一个很好的寻找,谢谢。我会检查一下,看看它在PC上是否与其他PC不同。
hmm, that''s a good one to look for, thanks. I''ll check so see if it is different on that PC than the others.


尝试将以下内容放在.bat文件中并从用户pc运行它:
Try putting the following in a .bat file and run it from the users pc:
展开 | 选择 | Wrap | 行号


这篇关于单击时,Treeview nodeClick不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆