Hi j2associates,
Welcome to MSDN again.
On this thread (http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/dd68efc6-246b-4eae-80b0-4ae97f32ff29)
I have given you the link to a KB article (http://support.microsoft.com/kb/311315)
In that KB, you can see the “Deploy the Control and the Image File as Separate Files” paragraph.
<ToolboxBitmap("c:\MyIcon.bmp")> _
Public Class MyUserControl
Inherits System.Windows.Forms.UserControl
' Generate code.
' Code for the control.
End Class
It uses the absolute path of the bmp file.
So in your situation, please try to use “<ToolboxBitmap(GetType(MyClass), "
C:\Program Files\Path\MyClass\Images\ToolBoxMyClass.bmp ")> _”.
If you have any problems, please feel free to tell me.
Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn[At]microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!