我想以编程方式固定我的应用程序 [英] I want to pin my application programmatically

查看:66
本文介绍了我想以编程方式固定我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个.NET应用程序,并希望以编程方式将该应用程序固定到任务栏(例如右键单击操作->将此应用程序固定到任务栏).我该怎么办?

I develop a .NET application and want to pin the application programmatically to taskbar (like actions right click -> pin this application to taskbar). How can I do it?

我还想将此固定的应用程序移到开始"位置附近.按钮.

Also I want to move this pinned application near the "Start" button.

谢谢

推荐答案

你好

没有API可以将应用程序固定在任务栏上.这与无法以编程方式访问开始菜单引脚列表的原因相同: http://blogs.msdn.com/oldnewthing/archive/2003/09/03/54760.aspx .

There's no API to pin applications on taskbar. This has the same reason for not having programmatic access to the start menu pin list: http://blogs.msdn.com/oldnewthing/archive/2003/09/03/54760.aspx.

通过这种方式,确实存在一种从任务栏中取消固定项目的方法:

By the way, there does exist a way to unpin an item from taskbar:
http://msdn.microsoft.com/en-us/library/bb774817(VS.85).aspx
As noted in the remarks, the intended usage scenario for this method is during application uninstall.


这篇关于我想以编程方式固定我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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