Select to view content in your preferred language

StandAlone Table Events

671
1
12-21-2010 07:39 AM
GregRieck
Frequent Contributor
Hello, I'm looking for an ArcGIS 10 C# table event example. I've found the following VB6 example but not sure how to convert it to C# can you help?

Private WithEvents m_pTableSel As StandaloneTable
Private m_pApp As IApplication

Public Sub SetEvents()
  Dim pMxDoc As IMxDocument
  Dim pMap As IStandaloneTableCollection
  Dim pStdAloneTbl As IStandaloneTable
 
  Set pMxDoc = m_pApp.Document
  Set pMap = pMxDoc.FocusMap
  Set pStdAloneTbl = pMap.StandaloneTable(0)
  Set m_pTableSel = pStdAloneTbl
End Sub

Private Sub m_pTableSel_SelectionChanged()
MsgBox "Selection Changed"
End Sub

Private Sub ICommand_OnCreate(ByVal hook As Object)
     Set m_pApp = hook
     SetEvents
End Sub
0 Kudos
1 Reply
GregRieck
Frequent Contributor
ITableSelection.SelectionChanged()
0 Kudos