Integrate Win7 taskbar progress without external dlls?

Hey, trying to make a fancy little application here in the VB.NET framework 4. I saw several programs that use the Windows 7 taskbar progress bar, but they are built into the application when I googled and tried to do this, my program should have pulled out about 3 extra dlls when it should be a single executable file and very portable. how can i access the progress bar of the taskbar without dragging these resources?

+3
source share
1 answer

Using the Windows API. The Windows API code contains C # code that shows how these Windows API functions (including the progress icon on the Windows 7 taskbar) are accessible through .NET.

Yes, usually you compile this API package in a DLL and distribute it with your project, but since the source code is available and the license seems quite permissive (please check yourself twice, I'm not a lawyer), you can translate the corresponding parts of the code to VB (available many tools for this online) and include it in your project. That way you still have one exe file with no external dependencies.

+4
source

Source: https://habr.com/ru/post/1752617/


All Articles