Extension Walkthrough
Extension.vb
' Copyright 2011 ESRI
' 
' All rights reserved under the copyright laws of the United States
' and applicable international laws, treaties, and conventions.
' 
' You may freely redistribute and use this sample code, with or
' without modification, provided you include the original copyright
' notice and use restrictions.
' 
' See the use restrictions.
' 

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text

Imports ESRI.ArcGISExplorer
Imports ESRI.ArcGISExplorer.Application
Imports ESRI.ArcGISExplorer.Mapping
Imports ESRI.ArcGISExplorer.Data
Imports ESRI.ArcGISExplorer.Threading

Public Class Extension
    Inherits ESRI.ArcGISExplorer.Application.Extension
    Private _t As System.Timers.Timer = New System.Timers.Timer(60000)

    Public Overrides Sub OnStartup()
        _t.Start()
        AddHandler _t.Elapsed, AddressOf _t_Elapsed
    End Sub
    Private Sub _t_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
        System.Windows.Forms.MessageBox.Show("This message box is displayed every 60 seconds. If you would like to disable" + _
                       "this extension, go to the ArcGIS Explorer Options, select the Resources tab, and Manage Add-Ins.")
    End Sub
    Public Overrides Sub OnShutdown()
        _t.Stop()
    End Sub

End Class