如何用C#编写一个在windows任务栏上的程序 注意不是vista或win7的桌面小工具,也不是用NotifyIcon控件的托盘图标,而是可以在任务栏加入各种控件,比如textbox、button之类的,就像google桌面搜索这样: 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 很难吗?google桌面是如何实现的,是不是调用的winapi?C#也可以吧 看看是不是这种:http://www.developer.com/article.php/3336751 好像还是用NotifyIcon控件吧,只能有一个图标,无法添加各种控件 之前就看到过NotifyIcon控件这种简单的,想这样复杂的不知道~学习~ 用c++的话看看下面链接http://msdn.microsoft.com/zh-cn/library/bb776819%28en-us,VS.85%29.aspx如果用C#来实现的话,比较麻烦 要写windows shell扩展,属于COM编程,用VC++和ATL比较合适 给你一个示例,剩下的就靠你自己发挥了。把Button换成你自己做好的控件就好了。public partial class Form1 : Form { [DllImport ("user32.dll")] private extern static IntPtr FindWindow(StringBuilder lpClassName, StringBuilder lpWindowName); [DllImport("user32.dll")] private extern static IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { IntPtr Ret = FindWindow(new StringBuilder("Shell_traywnd"), new StringBuilder("")); if (IntPtr.Zero != Ret) { Button Btn = new Button(); Btn.Left = 924; Btn.Top = 2; Btn.Width = 200; Btn.Height = 25; Btn.Click += new EventHandler(Btn_Click); SetParent(Btn.Handle, Ret); } } void Btn_Click(object sender, EventArgs e) { MessageBox.Show("这是一个弹出对话框"); } } 有没有静态的sql类 复制word的格式 求自定义文件打开(保存)对话框源码 System.Threading.Thread.Sleep(i);这句话是什么意思 ? 怎么用C#直接生成一个dbf文件给出个实例 关于MDI的几个小问题 关于邮件管理系统开发的一个另人十分郁闷的问题 连数据库问题 请高手帮帮忙~~~ 一个小问题。 (C#小游戏)如何加快系统对键盘事件的响应? C#操作打印队列一问 关于C# TreeView数据填充问题
http://www.developer.com/article.php/3336751
http://msdn.microsoft.com/zh-cn/library/bb776819%28en-us,VS.85%29.aspx
如果用C#来实现的话,比较麻烦
给你一个示例,剩下的就靠你自己发挥了。把Button换成你自己做好的控件就好了。
public partial class Form1 : Form
{
[DllImport ("user32.dll")]
private extern static IntPtr FindWindow(StringBuilder lpClassName, StringBuilder lpWindowName);
[DllImport("user32.dll")]
private extern static IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
IntPtr Ret = FindWindow(new StringBuilder("Shell_traywnd"), new StringBuilder(""));
if (IntPtr.Zero != Ret)
{
Button Btn = new Button();
Btn.Left = 924;
Btn.Top = 2;
Btn.Width = 200;
Btn.Height = 25;
Btn.Click += new EventHandler(Btn_Click);
SetParent(Btn.Handle, Ret);
} } void Btn_Click(object sender, EventArgs e)
{
MessageBox.Show("这是一个弹出对话框");
}
}