'============================================
'api声明
'将以下代码放一个模块里
'===========================================
Public Declare Function ShowWindow Lib "user32" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Function 隐藏access窗口()
ShowWindow Access.Application.hWndAccessApp, 0
End Function
Public Function 显示()
ShowWindow Access.Application.hWndAccessApp, 0
Form_窗体1.Visible = True
End Function
Public Function 隐藏窗体()
ShowWindow Access.Application.hWndAccessApp, 5
Form_窗体1.Visible = False
End Function
作者: 佳佳 时间: 2003-12-9 20:41
感谢作者: cnamos 时间: 2009-6-16 21:06
这个你测试过了吗?我为何测试不通过?我现在遇到的问题就是打开我的窗口时用
-----------------------------
Option Compare Database
Option Explicit
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Const WM_SYSCOMMAND As Long = &H112
Const SC_MOVE_MOUSE As Long = &HF012&
Private Declare Function ShowWindow Lib "user32" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Sub Form_Load()
ShowWindow Me.Application.hWndAccessApp, 0