I’m creating some software to keep my students on task. I’ve set it up so that I can control certain aspects of their computer from my computer. Problem is, I’m not sure how to control other applications from my application. I mostly just want to prevent it from being minimized. Some students like to switch screens quickly when I walk by. I would just like to make sure that it is always on top until I specify otherwise.
Thanks for any help. I’m using VB.net, I’m using the 3.5 .net framework for compatibility reasons.
In your main form, set the following two flags:
1)
MinimizeBoxproperty to False. This will prevent them from minimizing your app.2)
TopMostproperty to True. This will keep, for the most part, other windows from displaying over the top of yours.There may be some situations in which TopMost doesn’t work exactly as you want (for example, if another app that also specified TopMost was started before yours), but most standard applications don’t set this flag.