Question : Access task manager

Hii experts
How can I disable alt+f4 and task manager in acces? And how can I put the form in top of all running programs?

Answer : Access task manager

there is a long winded way - requires code to be added to your forms

this captures alt-f4

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    Dim altDownHit As Boolean
   
    altDownHit = (Shift + vbAltMask) > 0
   
    If KeyCode = vbKeyF4 And altDownHit Then
        MsgBox "Sorry , but Alt+F4 has been disabled"
        KeyCode = Empty
        Shift = Empty
    End If

End Sub



if you make your form modal, then it will always stay on top (within MSAccess).
Not sure if you go into tools/options and allow windows in taskbar, makes it modal for all windows.

to disable task mgr, there are registry hacks (can code in vba) you can do but what I saw ages ago was security per user not globally.
Random Solutions  
 
programming4us programming4us