Refresh Example VB

This example shows how to let a user select an annotation group from a list, hide it, and then refresh the Image Edit control.  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