[RESOLVED] WindowsCE Taskbar and Start Menu
How can I make the windows taskbar and start menu hide when my application is launched.
So far I was able to set the application to launch on startup from warmboot but I need the task bar to be hidden at all times when my application is running
Im developing for WinCE 6.00
Thanks!
Re: WindowsCE Taskbar and Start Menu
WIth some research I was able to come out with the simplest way to do it.
here are the declarations:
Code:
Public Class frmInitial
Declare Function FindWindow Lib "coredll.dll" (ByVal className As String, ByVal windowName As String) As Integer
Declare Function ShowWindow Lib "coredll.dll" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As Integer
Declare Function EnableWindow Lib "coredll.dll" (ByVal hwnd As Integer, ByVal bEnable As Boolean) As Integer
this code on form load to hide and disable the taskbar
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim hWnd As Integer
hWnd = FindWindow("HHTaskBar".ToCharArray(), Nothing)
EnableWindow(hWnd, False)
ShowWindow(hWnd, 0)
End Sub
this code on your application.close button or whatever way you are doing it, to show and enable the taskbar upon exit
Code:
Dim hWnd As Integer
hWnd = FindWindow("HHTaskBar".ToCharArray(), Nothing)
EnableWindow(hWnd, True)
ShowWindow(hWnd, 1)
con.Close()
Application.Exit()
Re: [RESOLVED] WindowsCE Taskbar and Start Menu
Re: [RESOLVED] WindowsCE Taskbar and Start Menu
Hello,
Although this thread has been resolved, I am going to move it to the Mobile Development Forum, as this is the correct forum for this type of question.
Thanks
Gary
Re: [RESOLVED] WindowsCE Taskbar and Start Menu
Quote:
Originally Posted by
gep13
Hello,
Although this thread has been resolved, I am going to move it to the Mobile Development Forum, as this is the correct forum for this type of question.
Thanks
Gary
Thanks Gary, will post my future questions to that thread.
Re: [RESOLVED] WindowsCE Taskbar and Start Menu
Thanks to this code. I will try this when i got home.