I guess you didn't use ResourseManager.
its not supposed to be a user selected icon, this has to be hard coded.
Assuming your assembly ends up to same directory as the main executable, you get the path to your dll in this way
Dim StartUpFolder As String
' Get the path where your app starts
StartUpFolder = Application.StartupPath
Dim MyDLLFile As String
' Append your dll's name to path
MyDLLFile = StartUpFolder & "\myicondll.DLL"
I still need it to use the icon I tell it, as the icon of the program
Once you've managed to load the right icon from the dll, assign it to (main) form's icon property
Dim myIcon As System.Drawing.Icon
' DEBUG: Load from the file
myIcon = New Icon("D:\icon.ico")
' Set the icon as the app's (i.e. main form's) icon
Me.Icon = myIcon
HTH
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008