The "form" object available from script, exposes a specific event that is raised after the item attachments are loaded.
The event is called "AttachmentsLoaded" and provide a list of the available item attachments. For each attachment, the "Filename" and "FullPath" properties provide access to file attributes.
For the following example, we will handle the event, select all the images from the available attachments and display thumbnails inside our form.
First place a label on the form named "c_Thumbs".
Next, inside the designer, go to the Options > Scripting > LoadCompleted script and add something like the following :
Here is the final result :