使PopUp对话框形式不可见 [英] Make a PopUp Dialog Form Invisible

查看:84
本文介绍了使PopUp对话框形式不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法使PopUp对话形式隐形!


''我的主要表单调用PopUp

DoCmd.OpenForm" F-PAUSE",WindowMode:= acDialog

''我的弹出形式''F-PAUSE"包含此代码

Private Sub Form_Open(取消为整数)

表格![F-PAUSE] .Visible = False

''我。 Visible = False''这不起作用

End Sub


表格在弹出时可见???

我直接运行F-Pause,仍然是同样的问题

另外,我没有在

表单的属性列表中看到可见属性,我猜这个是正常的。我在表格中使用计时器来暂停3秒钟,但改变这个没有任何影响。


任何想法???


谢谢

格雷格

I can''t seem to make a PopUp Dialog form Invisible!

''My main form calls the PopUp
DoCmd.OpenForm "F-PAUSE", WindowMode:=acDialog
''My PopUp form "F-PAUSE" contains this code
Private Sub Form_Open(Cancel As Integer)
Forms![F-PAUSE].Visible = False
'' Me.Visible = False ''this did not work either
End Sub

The form is visible when in Pops Up???
I ran F-Pause directly, and still the same problem
Also, I do not see a visible property in the properties list for a
form, and I guess this is normal. I am using the Timer in the form to
pause for 3 seconds, but changing this had no affect.

Any ideas???

Thanks
Greg

推荐答案



表单'的Open事件发生在表单甚至可见之前。为什么

你会尝试在那里做吗?

你想做什么?可能有更好的方法。


The form''s Open event occurs before the form is even made visible. Why
would you try to do it there?
What is it you are trying to do? There may be a better way.


Hello Mike


我在Load和Current事件中尝试了这个语句同时,没有

成功。


目的:

我的主表单的初始阶段调用PopUp表单。弹出窗口有
a 3秒定时器延迟我用来检查KeyPress序列。

如果按下KeyPress序列,主窗口将可用

修改FE数据的另一种形式,如果没有,那么mainform正常执行

。这是有效的,但我似乎无法使PopUp

形式隐形。我不希望弹出窗口可见。


谢谢

格雷格

Hello Mike

I tried the statement in the Load and Current events as well, without
success.

Purpose:
The Initial stage of my main form calls the PopUp form. The Popup has
a 3-second timer delay that I use to check for a KeyPress sequence.
If the KeyPress sequence is pressed, the mainform will make available
another form to modify the FE data, if not then the mainform executes
normally. This is working, but I just can''t seem to make the PopUp
form invisible. I do not want the popup visible.

Thanks
Greg


嘿格雷格,


一个看不见的形式无法集中注意力,因此无法接收用户

输入。

你有没有考虑过这个有一个菜单项,或一个AutoKeys

宏?

Hey Greg,

An invisible form cannot have focus, and as such cannot receive user
input.
Have you considered making this feature a menu item, or an AutoKeys
macro?


这篇关于使PopUp对话框形式不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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