Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO 2.0 / EO 3.0]Form always on Top


Wortel Angels
 Share

Recommended Posts

Got Fullscreen ? Or an big picScreen ?

Want to get the frmEditor_Map always on top ?

Use this:
Open frmEditor_Map
Add to the top
```
Private 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

Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2

Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1

Public Property Let AlwaysOnTop(ByRef Form As Form, ByVal New_Value As Boolean)
  Dim lngInsertAfter As Long

  If (New_Value) Then
    lngInsertAfter = HWND_TOPMOST
  Else
    lngInsertAfter = HWND_NOTOPMOST
  End If

  SetWindowPos Form.hWnd, lngInsertAfter, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Property
```Search
```
Private Sub Form_Load()
```And add there
```
    AlwaysOnTop(Me) = True
```
Hope this helps ;-)
Link to comment
Share on other sites

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...