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

后端 未结 2 779
旧时难觅i
旧时难觅i 2021-01-18 09:05

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 an

2条回答
  •  梦谈多话
    2021-01-18 10:00

    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.

提交回复
热议问题