Visual Basic 2005 Cookbook: Solutions for VB 2005 Programmers (Cookbooks (OReilly))
Problem
You want a specific form to appear on top of all other forms in your application, no matter which form is selected. Solution
If you wish to have a Toolbox-type form that is accessible at the same time as other forms but always remains on top, set the form's TopMost property to TRue. Discussion
If you also want to disable access to all other forms, open the important form of the moment using its ShowDialog() method: Form1.ShowDialog()
No other forms already displayed by the application will be available until the ShowDialog() form closes. |
Категории