Ever wonder how to give your windows control a tool box bitmap?
Instructions
- In VS.NET add a bitmap file to the project either by adding an existing bitmap or creating a new one
- Next right click the bitmap in the solution explorer and click properties. Make sure the property "Build Action" is set to "Embedded resource".
- Next create your custom control if you have not done so already
- Then add the fallowing attribute to the custom control you just created
<ToolboxBitmap(GetType(SampleControl), "NameOfBitmap.bmp")> _
Public Class SampleControl
Inherits System.Windows.Forms.UserControl
End Class