A friend is trying to write something not entirely unlike the old wintutor.exe from the olden days of Windows 3.1. It's meant to show some complete newbs the ropes of using WinXP, and the tutorial needs to respond to Alt + Tab and such for their own protection. How do you do this in C# Winforms?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I have no first-hand experience doing this and I don't know if there's an easier way now, but this CodeProject article discusses using C# to tap low-level Windows APIs that will trap keyboard strokes like Alt + Tab.
Serious question: do you really need to change what Alt + Tab does if you're teaching someone to use Windows?
It's kind of a basic tool of the OS, and it would be quite misleading for their introduction to the OS to behave differently to normal in such a fundamental way.
It would be much simpler to just show them a video explaining what that key combination does.
Some background reading.
If you want to lock down the GUI (as is sometimes done by the demo apps that run in computer stores), you could have a timer running that constantly forces your app to be the foreground. Some info here.