Merge a .dll in the program ?
In the past I have always done download from the web and inject. But I would like to just inject a .dll that is built in the form. Is that possible? And how? Thanks.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
IO.File.WriteAllBytes("FILEPATH", My.Resources.DLLNAME
End Sub
Private Sub Form1_UnLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.FormClosed
Dim DLLDelete As String
DLLDelete = "FILEPATH"
If System.IO.File.Exists(DLLDelete) = True Then
System.IO.File.Delete(DLLDelete)
End If
End Sub
Hide it in a folder somewhere ?