本文介绍了切换到设计视图时取消OnClose事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个OnClose函数可以打开一个交换机(SwitchOpen)。此函数放置在众多对象''(报表和表单)OnClose事件中,效果很好。然而,发生了非常烦人的事情:当我打开一个对象时,然后单击设计视图,OnClose事件触发,导致交换机打开事件,尽管该对象并未真正关闭。我应该在什么事件下放置SwitchOpen,以便它只在对象真正关闭时触发而不仅仅在设计视图中触发?I have an OnClose function that opens a switchboard (SwitchOpen). This function is placed in numerous objects'' (reports and forms) OnClose event, and works great. However, a very annoying occurrence happens: when I have an object open, then click Design View, the OnClose event triggers, causing the switchboard to open event though the object isn''t truly "closed". What event should I place the SwitchOpen under so that it only fires when the object is truly closed and not just in design view?推荐答案 展开 | 选择 | Wrap | 行号 这篇关于切换到设计视图时取消OnClose事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 04:27