Question : Full Screen

How do I go about hideing the TaskBar on win ce 4.1 device so I've got the full screen to work with?  I seem to be able to disable the taskbar but I want to hide it or draw over it.  Ive tryed the following:

     Private Const SWP_HIDEWINDOW = &H80
    Private Const SWP_SHOWWINDOW = &H40

    _
    Public Shared Function FindWindow(ByVal lpClass As String, ByVal lpTitle As String) As IntPtr
    End Function

    _
    Public Shared Function SetWindowPos(ByVal hWnd As IntPtr, ByVal hWndInsertAfter As Int32, ByVal X As Int32, ByVal Y As Int32, ByVal cx As Int32, ByVal cy As Int32, ByVal uFlags As Int32) As Boolean
    End Function

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim v As Long, a As Drawing.Rectangle, g As Drawing.Rectangle
        Dim b As Boolean

        Me.Show()

        Dim piTrayWnd As IntPtr = FindWindow("HHTaskBar", "")
        b = SetWindowPos(piTrayWnd, 1, 0, 0, 0, 0, SWP_HIDEWINDOW)

    End Sub

Answer : Full Screen

PAQed with points refunded (125)

modulo
Community Support Moderator
Random Solutions  
 
programming4us programming4us