Search code examples
c#windows-ce

how to make program that be in the taskbar windows-CE


how to make C# program that will be All time in the taskbar ?

i want to Build a Keyboard program.

i need that when i open the device the program will open and be in the taskbar.

another question is, when i have an external program that has a Textbox, how

to make that when i press any key in my C# keyboard it will be in this external Textbox ?

thank's in advance


Solution

  • It's not implemented in the CF, but the NotifyIcon class is what you're after. The SDF does implement it. It would be used something like this:

    m_notifyIcon = new NotifyIcon();
    m_notifyIcon.Icon = this.Icon;
    m_notifyIcon.Visible = true;
    m_notifyIcon.Click += new EventHandler(m_notifyIcon_Click);
    m_notifyIcon.DoubleClick += new EventHandler(m_notifyIcon_DoubleClick);
    

    EDIT

    If you want to implement this yourself, the place to start is with the Shell_NotifyIcon API. You'll want to pass it the handle to a MessageWindow class and handle the WM_NOTIFY messages.