I took the code from another tutorial but i fixed it to fit to my program. The problem is that while it hides the taskbar(yes! that's working) it doesn't hide the start button
Public Class Form1 Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer Const SWP_HIDEWINDOW = &H80 Const SWP_SHOWWINDOW = &H40 Dim taskBar As Integer
Form Load
taskBar = FindWindow("Shell_traywnd", "") Debug.Write(SetWindowPos(taskBar, 0&, 0&, 0&, 0&, 0&, SWP_HIDEWINDOW))
Close button
Debug.Write(SetWindowPos(taskBar, 0&, 0&, 0&, 0&, 0&, SWP_SHOWWINDOW)) End