Skip to content

ElektroStudios/DWM-Desktop-Window-Manager-Thumbnail-User-Control-for-.NET

ElektroDwmThumbnail

An user control for .NET providing DWM (Desktop Window Manager) thumbnail functionalities


👋 Introduction

ElektroDwmThumbnail is a .NET user-control written in VB.NET that enables the creation of dynamic real-time preview thumbnails for any window. It utilizes various DWM API functions and is provided as a user-control for easy and user-friendly implementation.

🎦 Videos

See a recorded video by clicking on the following button: demoapplication

📝 Requirements

  • Visual Studio.

🤖 Getting Started

Download the latest release by clicking here, and use it in Visual Studio.

Usage example in C#:

// Register a DWM thumbnail for the main window of Notepad process.
Process pr = Process.GetProcessesByName("Notepad").SingleOrDefault();
IntPtr? hWnd = pr?.MainWindowHandle;
ElektroDwmThumbnail1.RegisterThumbnail(hWnd);

// Unregister the DWM thumbnail.
ElektroDwmThumbnail1.UnregisterThumbnail();

Usage example in VB.NET:

' Register a DWM thumbnail for the main window of Notepad process.
Dim pr As Process = Process.GetProcessesByName("Notepad").SingleOrDefault()
Dim hWnd As IntPtr? = pr?.MainWindowHandle
ElektroDwmThumbnail1.RegisterThumbnail(hWnd)

' Unregister the DWM thumbnail.
ElektroDwmThumbnail1.UnregisterThumbnail()

Available properties in the control's property grid:

[properties

⚠️ Disclaimer:

This Work (the repository and the content provided in) is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Work or the use or other dealings in the Work.

💪 Contributing

Your contribution is highly appreciated!. If you have any ideas, suggestions, or encounter issues, feel free to open an issue by clicking here.

Your input helps make this Work better for everyone. Thank you for your support! 🚀

💰 Beyond Contribution

This work is distributed for educational purposes and without any profit motive. However, if you find value in my efforts and wish to support and motivate my ongoing work, you may consider contributing financially through the following options:



__________________

Becoming my sponsor on Github:

You can show me your support by clicking here,
contributing any amount you prefer, and unlocking rewards!



__________________

Making a Paypal Donation:

You can donate to me any amount you like via Paypal by clicking here.



__________________

Purchasing software of mine at Envato's Codecanyon marketplace:

If you are a .NET developer, you may want to explore 'DevCase Class Library for .NET',
a huge set of APIs that I have on sale. Check out the product by clicking here

It also contains all piece of reusable code that you can find across the source code of my open source works.



Your support means the world to me! Thank you for considering it! 👍