Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Location
My.Application.OpenForms Syntax
Dim result As System.Windows.Forms.FormCollection = _ My.Application.OpenForms
Description
The OpenForms property returns a collection of the application's currently open forms. Usage at a Glance
Example
The following code saves the location of each form to the application's area of the registry. Dim scanForm As System.Windows.Forms.Form For Each scanForm In My.Application.OpenForms SaveSetting("MySoftware", "FormPositions", _ TypeName(scanForm), scanForm.Left & "," & scanForm.Top) Next scanForm Related Framework Entries
See Also
Application Object, SplashScreen Property |
Категории