Move a Lost, Off-Screen Window Back On Screen (using C#)

Опубликовано: 11 Октябрь 2024
на канале: Code With Huw
442
27

Have you ever lost track of an application’s window when it is displayed “off screen” (beyond the edges of your monitor) or stacked somewhere behind other windows, maybe on a second or third monitor? Well, with a few programming tricks you will never lose a window ever again.

In this video, I show how to write a simple windows manager using Microsoft Visual Studio and the C# language. Along the way, I’ll explain how to import functions from system libraries using DllImport or LibraryImport, how to find screens on multiple monitors, select a running application from a list and display its main window on a selected screen.

This is one of a number of C# programming projects in which I explain how tio write your own File Manager, Drag&Drop Program Manager and other useful tools. To follow my C# Programming Projects, view the playlist:
   • C# Programming Projects  

To browse other playlists, go here:    / @learnwithhuw  

Huw Collingbourne is author of other books on programming C, C#, Java, Ruby, Delphi and Object Pascal, pointers, recursion and programming adventure games. Find them all on Amazon.

To learn C# quickly, Huw’s book, available in paperback or for Kindle, is the perfect complement to these YouTube lessons.
The Little Book Of C# Programming (Amazon US): https://amzn.to/2JWDI0o
The Little Book Of C# Programming (Amazon UK): https://amzn.to/2YaCPtS

Keep in Touch
==============================
Subscribe to the Code With Huw YouTube channel: https://www.youtube.com/CodeWithHuw?s...

Code With Huw on Facebook:
  / codewithhuw