1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Public Sub ParramStart()
Dim sTypeApp$
sTypeApp = Right$(CurrentProject.Name, 1)
If sTypeApp = "b" Then
' Application en .mdb .accdb, en mode devellopeur, activer fenettre et touches spécial
ModifiePropr "AllowBypassKey", dbBoolean, True
ModifiePropr "AllowSpecialKeys", dbBoolean, True
ModifiePropr "StartupShowDBWindow", dbBoolean, True
Else
' Application en .mde .accde .accdr, en mode execution, desactiver fenettre et touches spécial
ModifiePropr "AllowBypassKey", dbBoolean, False
ModifiePropr "AllowSpecialKeys", dbBoolean, False
ModifiePropr "StartupShowDBWindow", dbBoolean, False
End If
ModifiePropr "StartupForm", dbText, "Accueil"
ModifiePropr "AppTitle", dbText, "Mon appli"
ModifiePropr "AppIcon", dbText, CurrentProject.Path & "\logo.ico"
ModifiePropr "StartupShowStatusBar", dbBoolean, True
RefreshTitleBar
End Sub |
Partager