This example lets a user select an annotation group from a list and make it visible. See the example for the GetAnnotationGroup method for instructions on how to list annotation groups.
Private Sub cmdShowGroup_Click()
Dim strCurGroup As String
'Determine which group the user selected from the listbox
strCurGroup = AnnoGroups.List(AnnoGroups.ListIndex)
Form1.ImgEdit1.ShowAnnotationGroup (strCurGroup)
'Call refresh to repaint with the group hidden
Form1.ImgEdit1.Refresh
End Sub