Const File1 As String = "C:\File.txt"
Const FileImmagine As String = "Immagine.jpg"
Dim StrTemp As String
Dim Riga As String
'Crea il file
Open File1 For Output As #1 <--- errore del debug
Print #1, Immagine.jpg <---- lho cambiato
Close #1
'---
'Recupera il nome del file immagine
Open File1 For Input As 1
Line Input #1, Riga
Close #1
'---
'Carica l'immagine se esiste
StrTemp = App.Path
If Right(StrTemp, 1) <> "\" Then StrTemp = StrTemp & "\"
StrTemp = (StrTemp & Riga)
If Len(Dir(StrTemp)) > 0 Then
Form.Picture = LoadPicture(StrTemp) <--- lho cambiato
End If