Hm. Sounds as though the simplest thing, then, would be something like setting
KeyPreview property to
True on each of the other forms, and include something like this on each form...
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
-
KeyCode = 0
-
MainForm.Show
-
End Sub
Not knowing the exact situation, I don't know what else you need to do at that point. This might include stopping the user if they're in the middle of something, hiding or unloading the current form, or whatever.