简体   繁体   English

桌带不可修改

[英]deskband can not be modified

I have created a deskband followed by the tutorial on codeproject (http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx).我创建了一个桌带,然后是 codeproject 教程 (http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx)。

After I installed the deskband, I realized there is something need to be modified.安装好桌带后,我意识到有些地方需要修改。 So II uninstalled the deskband, went back to my code and edit the code, rebuild the solution, re-install the deskband.所以我卸载了桌带,回到我的代码并编辑代码,重建解决方案,重新安装桌带。 However, in the taskbar, the deskband shows as nothing was changed, the modification does not make any change.但是,在任务栏中,桌带显示为没有任何变化,修改后没有任何变化。 Anyone knows why is that?有谁知道这是为什么?

I understand that you installed a deskband on the taskbar, which means your DLL runs under the explorer.exe process.我了解到您在任务栏上安装了桌带,也就是说您的 DLL 在 explorer.exe 进程下运行。
The thing is that after you loaded your deskband onto the taskbar - that's it, the DLL is loaded in the process.问题是,在您将桌带加载到任务栏后 - 就是这样,DLL 会在此过程中加载。

For the Deskband really reload the DLL itself (from scratch), you need to restart the process that loads it, meaning you have to restart explorer.exe.对于 Deskband 真正重新加载 DLL 本身(从头开始),您需要重新启动加载它的进程,这意味着您必须重新启动 explorer.exe。

I'm actually working on a similar problem to find a more elegant solution.我实际上正在研究类似的问题以找到更优雅的解决方案。 If I'll find something I'll let you know.如果我能找到什么我会告诉你的。

EDIT: Check it out: how can i remove a deskband and delete its dll without restart the explorer process?编辑:检查一下: 如何在不重新启动资源管理器进程的情况下移除桌带并删除其 dll? It's a similar question, and the answer by Mosc (a hack solution) worked for me.这是一个类似的问题,Mosc(一个黑客解决方案)的答案对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM