VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

With very few lines of code you can make any form go full-screen covering all other applications, t

Joshua Carroll  (2 Submissions)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Thu 26th September 2002   Mon 8th February 2021

With very few lines of code you can make any form go full-screen covering all other applications, the task-bar, etc.

API Declarations



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 Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_INSERTONLY = SWP_NOMOVE Or SWP_NOSIZE
Public Const SWP_SHOWWINDOW = &H40
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public Const HWND_BOTTOM = 1
Public Const HWND_TOP = 0

Public Enum enmPosition
posTop = HWND_TOP
posBottom = HWND_BOTTOM
posTopMost = HWND_TOPMOST
posNoTopMost = HWND_NOTOPMOST
End Enum


Rate With very few lines of code you can make any form go full-screen covering all other applications, t (2(2 Vote))
With very few lines of code you can make any form go full-screen covering all other applications, t.bas

With very few lines of code you can make any form go full-screen covering all other applications, t Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters