你能想出一些方法从已编译的 vb6 应用程序中删除按钮吗
我们有一个客户运行的 VB6 应用程序,当用户单击“帮助”按钮时,其中存在错误。一个快速而简单的修复方法是以某种方式删除该按钮,以便他们无法单击它(顺便说一句,重新编译不是一个选项)。可能是一个单独的应用程序正在运行,它不断寻找此表单,然后以某种方式删除/隐藏该按钮。任何人都可以想出一种方法来做到这一点吗?
We have a VB6 application running at a customer that has a bug in it when the user clicks on the Help button. A quick and easy fix would be to somehow remove the button so that they cannot click it (recompiling isn't an option btw). Possibly a separate app running that is constantly looking for this form and then somehow removing/hiding the button. Can anyone think of a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您也许可以使用标题找到按钮窗口句柄,也许类,然后禁用它 。
这将是纯粹的邪恶,并且迟早会给你或(更糟糕的是)无辜的同事带来巨大的痛苦。您确实应该重新编译应用程序,除非受到比迅猛龙更糟糕的威胁。
You might be able to find the button window handle using the caption and maybe the class, and then disable it.
This would be pure unadulterated evil, and would sooner or later cause immense pain to you or (worse) an innocent colleague. You really should recompile the application, unless threatened by something worse than a velociraptor.