开发者

VB.NET - integrate Win7 taskbar progress without the external DLLs?

Hey trying to make a fancy little app here in VB.NET framework 4. I've seen several programs which utilise windows 7's taskbar progressbar, but they have it embedded in the application when i googled and attempted to do this, my program had to lug around 3 extra dlls when its supposed to be a single exec开发者_如何学Pythonutable, and highly portable. how can i gain access to the taskbar progressbar without having to drag about these resources?


By using the Windows API. The Windows API Code Pack includes C# code that shows how these Windows API functions (including the Windows 7 taskbar progress icon) are accessed through .NET.

Yes, usually you'd compile this API pack into a DLL and distribute it with your project, but since the source code is available and the license seems to be quite permissive (please double-check yourself, I'm not a lawyer), you could translate the relevant parts of the code to VB (there are plenty of tools available for that online) and include it in your project. That way, you still have your single EXE file without external dependencies.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜