No, that seems a bit silly to me...


I already have the topmost code on, but I want it so that the user can't take any other actions with the keyboard or mouse until that form is gone.

Pretend I have a form with a button for example, which closes that form. When the form is showing, I want it so that the user can't do anything on the computer until that button is clicked to get rid of the form.

Have you never gotten a critical error messagebox on your computer before? It's the exact same way. You try clicking anywhere outside of that messagebox, and you hear the ding as a windows sound, and you are unable to do anything until you get rid of that messagebox by pressing either Ok, or Cancel, or whatever else buttons there are for that messagebox. I want my form to be like that to ensure that data doesn't get changed while it's open. I'm not looking for any other suggestions.