Ciao,
a dir la verità è una strada che mi permetterebbe di evitare la canna del gas!
Ovviamente se puoi aiutarmi e risolvere il problema lavorando con le risorse sarebbe fantastico!
Purtroppo non è facile, ci sto sbattendo la testa da un po'..
Giusto x allinearti, sto cercando di scrivere un tool esterno che dovrebbe essere in grado di aggungere una risorsa immagine al mio exe..
purtroppo non ho capito bene se è possibile, sul web sembra di sì ma non ho trovato un esempio chiaro.
Sto cercando di farlo in 3 steps:
1. Creare un file di resources
Dim objData As Byte() = Nothing Dim strString As String
Dim rsw As Resources.ResourceWriter


' estraggo il contenuto del file in un array di Byte
objData = IO.File.ReadAllBytes("LOGO_NEW.bmp")
strString = IO.Path.GetFileNameWithoutExtension("LOGO_NEW.bmp" )


'Creates a resource writer instance to write to MyResource.resources.
rsw = New Resources.ResourceWriter("MyResource.resources")


'Adds the image to the resource.
' "MyImage" is the name that the Image is identified as in the resource.
rsw.AddResource(strString, objData)
rsw.Close()
2. aggiungere il file al mio exe.. non ho idea come, sto investigando...
3. per poi sperare che sia visibile dal codice del mio exe:
runTimeResourceSet = My.Resources.ResourceManager.GetResourceSet(System .Globalization.CultureInfo.InvariantCulture, False, True) For Each dictEntry In runTimeResourceSet
ListBox1.Items.Add(dictEntry.Key)
If dictEntry.Key = "LOGO_NEW" Then
'PictureBox1.Image = Image.FromStream(My.Resources.ResourceManager.GetS tream(dictEntry.Key))
PictureBox1.Image = My.Resources.ResourceManager.GetObject(dictEntry.K ey)
End If


'If (dictEntry.Value.GetType() Is GetType(Bitmap)) Then
' Console.WriteLine(dictEntry.Key)
'End If
Next
quindi... capirai bene che sto cercando una soluzione meno orrenda... ma faccio molta fatica.
Se riesci ad aiutarmi sulla strada sopra indicata ti ringrazio moltissimo!!

..altrimenti la strada dell'appendere all'exe sarebbe un workaround che onestamente accetterei.

Grazie 1000 per il momento!
Ciao
Andrea