Hi,
I was looking for a way to make my form fullscreen.
I have tried a few things and looked on the interweb but nothing seems to work, but it looks like it should.
for example:
would work if form returned a hWnd and not a handle like it is doing now..
The fullscreen needs to cover the windows start bar and also stay on topmost too.
Any ideas?
Thanks
Illusion
I was looking for a way to make my form fullscreen.
I have tried a few things and looked on the interweb but nothing seems to work, but it looks like it should.
for example:
Code:
Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40
Private Declare Sub 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)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
SetWindowPos(Me.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE)
End Sub
would work if form returned a hWnd and not a handle like it is doing now..
The fullscreen needs to cover the windows start bar and also stay on topmost too.
Any ideas?
Thanks
Illusion