How to remove runtime background

latex88

Registered User.
Local time
Today, 04:29
Joined
Jul 10, 2003
Messages
198
I have changed numerous features in "Current Database" under "Options", but I am unable to achieve what I need. I just need a popped form to show up when the program is initiated (no other background), meaning, I want to hide all the Runtime menu. I am able to get to the point of just the form showing up, but the form is maximized, which is not what I desire. Please help if you can.
 
You will need code in your popup form to hide the main application window. You will then need to set a reference to the popup form, either through the Startup > Display Form/Page option, or by use of an Autoexec macro using the OpenForm action.

At the top of your popup form's code, you will need the following declarations:
Code:
[COLOR="Navy"]Private Declare Function[/COLOR] ShowWindow Lib "user32" ( _
    [COLOR="navy"]ByVal[/COLOR] hwnd [COLOR="navy"]As Long[/COLOR], _
    [COLOR="navy"]ByVal[/COLOR] nCmdShow [COLOR="navy"]As Long[/COLOR]) [COLOR="navy"]As Long

Private Const[/COLOR] SW_HIDE = 0
[COLOR="navy"]Private Const[/COLOR] SW_NORMAL = 1

You will then need the following code for the popup form's Load and Unload events:
Code:
[COLOR="Navy"]Private Sub[/COLOR] Form_Load()

    ShowWindow Application.hWndAccessApp, SW_HIDE
    ShowWindow Me.hwnd, SW_NORMAL

[COLOR="navy"]End Sub

Private Sub[/COLOR] Form_Unload(Cancel [COLOR="navy"]As Integer[/COLOR])

    Application.Quit

[COLOR="navy"]End Sub[/COLOR]
 
Last edited:
Hmmm. I'm not sure what went wrong, but since I incorporated your code, I can no longer modify the file. I keep getting the I do not have privilege...I tried to open it exclusively, as if the file is open, but I cannot find it anywhere, even in Task Manager.
 

Users who are viewing this thread

Back
Top Bottom