C# 在任务栏上显示文本 |视窗 10 [英] C# Display text on the taskbar | Windows 10

查看:50
本文介绍了C# 在任务栏上显示文本 |视窗 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像 NetSpeedMonitor 程序一样在任务栏中显示文本.我想过 Windows 是如何通过日期和时间显示来做到这一点的,但我找不到任何答案.我想用 C# 和 .Net 4.x 来做到这一点

I want to display a text in the taskbar like the NetSpeedMonitor program . I thought about how Windows did that with der Date and Time display, but I couldn't find any answer. I want to do this with C# and .Net 4.x

推荐答案

如果你看这张图

您看到 Windows 应用程序中的所有内容都有一个 句柄(HWND),如果您获得它,您可以更改此应用程序参数并添加或删除任何内容,如果查看此 link 在您只需要的控制台应用程序中有它的示例只是在任务栏上做同样的事情.我为所有办公应用程序创建了一个 dll,以便在 c# 中使用它们,例如 this,我通过使用处理 office 和我的应用

you see every thing in windows application have an handle(HWND) and if you get it you can change this app parameters and add or remove any thing on if look at this link there is sample for it in console application you just need just doing same thing on taskbar. I created a dll for all office apps to use them in c# like this and i done this by using handles of office and my app

这篇关于C# 在任务栏上显示文本 |视窗 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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