Draw Example VB

This example uses the SelectTool method to select the Text From File annotation type.  It then uses the content of the AnnotationTextFile property and the Draw method to overlay text from a text file onto an image.

Private Sub cmdSelectTool_Click()
    'If the annotation tool palette is utilized within an
    'application, SelectTool should be used rather than
    'setting the AnnotationType property for drawing marks
    'programatically.
    ImgEdit1.SelectTool 9 'Text from file
    ImgEdit1.AnnotationTextFile = "C:\text\disclaim.txt"
    ImgEdit1.Draw 20, 20
End Sub