Refresh Method

Applies to:  Windows collection
See also:  FindWindow method

Refreshes the elements of a Windows collection.

Syntax:

object.Refresh

The Refresh method syntax has these parts:

Part Description
object The name of a Windows collection.

Remarks:

Calling Refresh removes those windows from a collection which have been destroyed since the last call to Refresh, and adds to the collection any windows which have been created which match the criteria used to create the collection.

If the collection was returned from a call to GetTopLevelWindows, calling Refresh will update the collection so that it contains an up to date view of all of the currently open top-level windows.

If the collection was returned by examining the ChildWindows property of a Window object, calling Refresh will update the collection so that it contains an up to date view of all of the child windows of that Window.

If the collection was returned by examining the Windows property of a Thread object, calling Refresh will update the collection so that it contains an up to date view of all of the windows belonging to that Thread.

 

Home Copyright and Disclaimer