minimize the access window error (1 Viewer)

engc2011e

New member
Local time
Today, 22:56
Joined
Jan 20, 2021
Messages
6
i used this code in access vba to minimize the access window but hide from toolbar oslo

Code:
Public Sub MINIMIZEAccessWindow()
Dim accessHwnd As LongPtr
accessHwnd = FindWindowA("OMain", vbNullString)
If accessHwnd <> 0 Then
    ShowWindow accessHwnd, SW_MINIMIZE ' check as hid
End If
End Sub
 
Last edited by a moderator:

isladogs

MVP / VIP
Local time
Today, 21:56
Joined
Jan 14, 2017
Messages
18,239
The title suggests the code isn't working but you've not said what error you are getting.
As written it won't work as it depends on the FindWindow API that you haven't included.

Please post all your code including the APIs and this time use code tags (# on toolbar) to improve legibility and retain indentation.

For clarity, can you conform that you want to hide the application window and the Taskbar icon. Or if that'not the case, exactly what you do want to do.

You can probably find what you want in my example app

 

engc2011e

New member
Local time
Today, 22:56
Joined
Jan 20, 2021
Messages
6
i explain the problem here in video
 

Attachments

  • Notes.txt
    52 bytes · Views: 74

isladogs

MVP / VIP
Local time
Today, 21:56
Joined
Jan 14, 2017
Messages
18,239
You didn't answer my questions.
I've watched the video but it has no audio or explanation.
I still have no idea what your issue is.

Have you studied my example database yet?
 

engc2011e

New member
Local time
Today, 22:56
Joined
Jan 20, 2021
Messages
6
I check the video it's have voice and I explain my problem the problem when I click the code the access from all hidden from the window and from the tool bar

this code
Code:
Public Sub MINIMIZEAccessWindow()
Dim accessHwnd As LongPtr
accessHwnd = FindWindowA("OMain", vbNullString)
If accessHwnd <> 0 Then
ShowWindow accessHwnd, SW_MINIMIZE ' check as hid
End If
End Sub

I put the code in model and call it from the form in load
 
Last edited by a moderator:

isladogs

MVP / VIP
Local time
Today, 21:56
Joined
Jan 14, 2017
Messages
18,239
OK I watched it twice more on another machine & this time I heard the commentary though it was very quiet.
I'm sorry but its still unclear what you are asking.
I know what's happening but don't know what you want to happen

Despite a reminder, you have made no attempt to answer my questions from post #2.
Nor have you told me whether you've studied my example database which will almost certainly include code for your purposes

Unless you respond to those points, I will drop out of this thread
 

sonic8

AWF VIP
Local time
Today, 22:56
Joined
Oct 27, 2015
Messages
998
i explain the problem here in video
It's a tall order to expect people watching a video to understand your problem, while you cannot be bothered to write a single line describing the issue.
Please describe the issue in a comprehensible way here. A video should only contain supplementary information to understand certain details of an issue.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 04:56
Joined
May 7, 2009
Messages
19,245
You can also put Access window away from the current screen resolution and it will hide Access window.
Open form1 on the demo.
 

Attachments

  • hideAccessWindow.accdb
    808 KB · Views: 76

Users who are viewing this thread

Top Bottom