明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

怎么隱藏Access窗口

[摘要]Global Const SW_HIDE = 0Global Const SW_SHOWNORMAL = 1Global Const SW_SHOWMINIMIZED = 2Global Const...

  Global Const SW_HIDE = 0

  Global Const SW_SHOWNORMAL = 1

  Global Const SW_SHOWMINIMIZED = 2

  Global Const SW_SHOWMAXIMIZED = 3

  Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

  Function fSetAccessWindow(nCmdShow As Long)

  ' 使用舉例

  ' 最大化 Access 窗口

  ' ?fSetAccessWindow(SW_SHOWMAXIMIZED)

  ' 最小化 Access 窗口

  ' ?fSetAccessWindow(SW_SHOWMINIMIZED)

  ' 隱藏 Access 窗口

  ' ?fSetAccessWindow(SW_HIDE)

  ' 正常顯示 Access 窗口

  ' ?fSetAccessWindow(SW_SHOWNORMAL)

  '

  Dim loX As Long

  Dim loForm As Form

  On Error Resume Next

  loX = ShowWindow(hWndAccessApp, nCmdShow)

  Err.Clear

  fSetAccessWindow = (loX <> 0)

  End Function


Microsoft Access在很多地方得到廣泛使用,例如小型企業(yè),大公司的部門。




標(biāo)簽:如何隱藏Access窗口