AccessTr.neT
Formu En Üstte Tutmak - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: Formu En Üstte Tutmak (/konu-formu-en-ustte-tutmak.html)



Formu En Üstte Tutmak - accessman - 27/05/2020

formu en üstte tutmak için ne yapabiliriz

Public Const SWP_NOMOVE = 2
Public Const SWP_NOSIZE = 1
Public Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2

Public 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

Public Function AOT(hwnd As Long, Topmost As Boolean) As Long
    If Topmost = True Then
        AOT = SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
    Else
        AOT = SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, FLAGS)
        AOT = False
    End If
End Function

bunu nasıl kullanacağız


RE: Formu En Üstte Tutmak - accessman - 27/05/2020

SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE Or SWP_SHOWWINDOW)
"SWP_NOMOVE Or SWP_NOSIZE Or SWP_SHOWWINDOW" kelimeleri ne işe yarıyor


RE: Formu En Üstte Tutmak - A.Kadir. - 27/05/2020

işinizi kod ile yapmanızı takdir ediyorum.
kodu yazan fonksiyon oluşturmuş.
fakat basit bir yolu var bu işin.
form özelliklerinden.
kalıcı= evet
açılan=evet
yapmanız yeterli.


RE: Formu En Üstte Tutmak - accessman - 27/05/2020

Aynı işi görmüyorlar


RE: Formu En Üstte Tutmak - A.Kadir. - 27/05/2020

her zaman üstte kalmasını istiyorsanız.
başka