|When you use just a Type (the first constructor in your snippet), an image is used that has the same namespace and name as your class, but with a .bmp extension. I.e., if your class is
Example.Class, then the image to be used is
Example.Class.bmp. This image must be an embedded resource.
The second constructor is the name of an embedded resource, so you must include any namespace and the name of the file, like
The third constructor uses the namespace of the Type you pass in the first parameter and adds the name that you pass with the third constructor. If the class is
Example.Class and you pass "Toolbox.bmp" as the name, then the image used is
In all three cases, the image must be an emdedded resource, not a file on the computer. So, add a bitmap to your project, right-click and select Properties, then change the build type to "Embedded Resource".
You can find more details about this in the documentation for the
ToolboxBitmapAttribute class in the .NET Framework SDK.
-----BEGIN GEEK CODE BLOCK-----
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----