Results 1 to 6 of 6

Thread: [RESOLVED] WindowsCE Taskbar and Start Menu

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2013
    Posts
    74

    Resolved [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!

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Mar 2013
    Posts
    74

    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()

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2013
    Posts
    74

    Re: [RESOLVED] WindowsCE Taskbar and Start Menu


  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2013
    Posts
    74

    Re: [RESOLVED] WindowsCE Taskbar and Start Menu

    Quote Originally Posted by gep13 View Post
    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.

  6. #6
    Member jOrgo's Avatar
    Join Date
    Apr 2007
    Location
    Mountains
    Posts
    40

    Re: [RESOLVED] WindowsCE Taskbar and Start Menu

    Thanks to this code. I will try this when i got home.
    Last edited by jOrgo; Jul 4th, 2013 at 09:26 PM. Reason: additional message
    ___________________________________________
    Open the mind and create the Future but Remember to clean the Mess Afterward

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width