A really simple class I made for another program that is easy to you use, there might be something's within it's events you might want to change. For example, as is, it will take whatever form you launch it with and remove it from being topmost, also, you can enter the name (or any part of) another window/process that you want to take topmost and it will pass it to that. So if those aren't feautures you're interest in, just go to region " Event Subs " and remove the first event entirely(write your own if you want) and remove the following lines from second event:
a Code:
GetWindowRect(MyBase.Handle, MYr)
SetWindowPos(MyBase.Handle, hWndEnum.HWND_NOTOPMOST, MYr.rLeft, MYr.rTop, 0, 0, SWPenum.TOPMOST_FLAGS)
Do that, and you will have the VERY base class of hiding the desktop.
Just build (as usual) then add refrence to the dll or just use the form in your project.
Use of this class is very simple:
Establish class:
establishClass Code:
' if you just used form or if you added refrence and remembered to put Import tag at top of your form
Public hideDesk As hideDesktop
On FormLoad Event:
On FormClosed Event