HideAnnotationGroup Example VB

This example lets a user select an annotation group from a list and hide it.  See the example for the GetAnnotationGroup method for instructions on how to list annotation groups.

Private Sub cmdHideGroup_Click()
    Dim strCurGroup As String
   
    'Determine which group the user selected from the listbox
    strCurGroup = AnnoGroups.List(AnnoGroups.ListIndex)
    Form1.ImgEdit1.HideAnnotationGroup (strCurGroup)
    'Call refresh to repaint with the group hidden
    Form1.ImgEdit1.Refresh
End Sub