Recipe 4.8. Making a Form the Top-Most Form


You want a specific form to appear on top of all other forms in your application, no matter which form is selected.


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.


If you also want to disable access to all other forms, open the important form of the moment using its ShowDialog() method:


No other forms already displayed by the application will be available until the ShowDialog() form closes.

Visual Basic 2005 Cookbook(c) Solutions for VB 2005 Programmers
Visual Basic 2005 Cookbook: Solutions for VB 2005 Programmers (Cookbooks (OReilly))
ISBN: 0596101775
EAN: 2147483647
Year: 2006
Pages: 400

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: