Explorer Object

The Explorer object is the window where a folder's contents are displayed. Folders contain items, such as mail items. The code in Listing 10.9 displays the name of the current folder in the active Explorer. The code is added to the Startup event handler of ThisApplication; therefore, the inbox should be the default current folder.

Listing 10.9. Displaying the name of the current folder in the active explorer

Private Sub ThisApplication_Startup(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Startup

MsgBox(Me.ActiveExplorer.CurrentFolder.Name)

0 0

Post a comment