How do i get my access 2003 Windows to always appear above all other applications running?
Window priority above other apps.
Collapse
X
-
Originally posted by HutchHow do i get my access 2003 Windows to always appear above all other applications running? -
Originally posted by HutchHow do i get my access 2003 Windows to always appear above all other applications running?Comment
-
Originally posted by HutchHow do i get my access 2003 Windows to always appear above all other applications running?
Code:Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Now the code:
Code:Private Sub Form_Open(Cancel As Integer) Dim wFlags As Long, lngX As Long wFlags = &H2 Or &H1 Or &H40 Or &H10 lngX = SetWindowPos(Application.hWndAccessApp, -1, 0, 0, 0, 0, wFlags) End Sub
Comment
-
Originally posted by ADeziiThat is a considerable Trade Off.
Private Sub Pri_Click_Click ()
If Me.Pri_Click = True Then
Dim wFlags As Long, lngX As Long
wFlags = &H2 Or &H1 Or &H40 Or &H10
lngX = SetWindowPos(Ap plication.hWndA ccessApp, -1, 0, 0, 0, 0, wFlags)
If Me.Pri_Click = False Then GoTo Ext_Pri
End If
Ext_Pri:
End Sub
Do you happen to know the code to take the Window Priority away?
Any help would be amazing, thanks in advance.Comment
-
Originally posted by HutchSo check it out i am using this code in a command click button now. Sometimes i want it to remain above other apps other times i don't so far i have this
Private Sub Pri_Click_Click ()
If Me.Pri_Click = True Then
Dim wFlags As Long, lngX As Long
wFlags = &H2 Or &H1 Or &H40 Or &H10
lngX = SetWindowPos(Ap plication.hWndA ccessApp, -1, 0, 0, 0, 0, wFlags)
If Me.Pri_Click = False Then GoTo Ext_Pri
End If
Ext_Pri:
End Sub
Do you happen to know the code to take the Window Priority away?
Any help would be amazing, thanks in advance.
[CODE=vb]Dim wFlags As Long, lngX As Long
wFlags = &H10 Or &H40
lngX = SetWindowPos(Ap plication.hWndA ccessApp, -2, 0, 0, 0, 0, wFlags)[/CODE]Comment
-
Dim wFlags As Long, lngX As Long
wFlags = &H10 Or &H40
lngX = SetWindowPos(Ap plication.hWndA ccessApp, -2, 0, 0, 0, 0, wFlags)
I figured out that the H10 and H40 was the cause of the screen movement, I changed them to 2 and 1 like in the previouse code but kept the -2. this works great.Comment
-
Originally posted by HutchDim wFlags As Long, lngX As Long
wFlags = &H10 Or &H40
lngX = SetWindowPos(Ap plication.hWndA ccessApp, -2, 0, 0, 0, 0, wFlags)
I figured out that the H10 and H40 was the cause of the screen movement, I changed them to 2 and 1 like in the previouse code but kept the -2. this works great.Comment
Comment