如何让程序在任务栏窗口-CE [英] how to make program that be in the taskbar windows-CE

查看:130
本文介绍了如何让程序在任务栏窗口-CE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让C#程序,它会在任务栏上所有的时间?

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

做,当我按任意键在我的C#的键盘它会在这个外部文本框?

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

感谢的提前

推荐答案

这不是在CF实施,但NotifyIcon的类是你追求的。 自卫队做的实现它。它将被用来这样的:

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

修改

如果你想自己实现,开始的地方与 Shell_NotifyIcon API。你会想把手把它传递给一个消息窗类并处理WM_NOTIFY消息。

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.

这篇关于如何让程序在任务栏窗口-CE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆