LocationMy.Application.OpenForms SyntaxDim result As System.Windows.Forms.FormCollection = _ My.Application.OpenForms DescriptionThe OpenForms property returns a collection of the application's currently open forms. Usage at a Glance
ExampleThe 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 AlsoApplication Object, SplashScreen Property |