SetFileProperties Example VB

This example shows how you can set several file properties. These properties can also be set by the user at runtime from the UI dialog box created by the ShowFileProperties method.

Private Sub cmdSetProperties_Click()
    'Specify the image you are going to set properties for.
    ImgAdmin1.Image = "D:\image2\hopolicy.tif"
    ImgAdmin1.Title = "HomeOwners Policy"
    ImgAdmin1.Author = "John Q. Agent"
    'Add multiple keywords.
    ImgAdmin1.Keywords = "insurance important house"
    ImgAdmin1.Comments = "1997 Homeowners Policy"
    ImgAdmin1.Subject = "Insurance"
    'Call SetFileProperties to actually write the properties to the file.
    ImgAdmin1.SetFileProperties
End Sub