bonjour je viens de masquer la fenetre access avec se code
'
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Déclaration API
Const SW_HIDE = 0 'Hide the window.
Const SW_MAXIMIZE = 3 'Maximize the window.
Const SW_MINIMIZE = 6 'Minimize the window.
Const SW_RESTORE = 9 'Restore the window (not maximized nor minimized).
Const SW_SHOW = 5 'Show the window.
Const SW_SHOWMAXIMIZED = 3 'Show the window maximized.
Const SW_SHOWMINIMIZED = 2 'Show the window minimized.
Const SW_SHOWMINNOACTIVE = 7 'Show the window minimized but do not activate it.
Const SW_SHOWNA = 8 'Show the window in its current state but do not activate it.
Const SW_SHOWNOACTIVATE = 4 'Show the window in its most recent size and position but do not activate it.
Const SW_SHOWNORMAL = 1 'Show the window and activate it (as usual).
Public Declare Function ShowWindow Lib "User32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long |
1 2 3
| Private Sub Form_Load()
Fenetre_Modale Forms![maform]
end sub |
et rendre ma formulaire auto exec,donc j ai plus d'accès a access
alors j'aimerai creé un bouton pour réafficher access, j' ai inséré un bouton
dans la formlaire avec se code
ShowWindow Application.hWndAccessApp, SW_SHOWNORMAL
mais ca marche pas !!!!
Partager