Great.
I used : System.Drawing.ToolboxBitmapAttribute.GetImageFromResource.
(Amazing that Microsoft company thought of all little things, even for
programmers).
I see 2 problems.
1. I don't know what is the type of the Pointer ? How can I show it's
toolbox-bitmap ?
2. I created a user control, but the above
System.Drawing.ToolboxBitmapAttribute.GetImageFromResource doesn't get
it's bitmap. Why ? Is there any common way to create user-control?
The static method GetImageFromResource() seems to require you to know a lot
about the assembly in order to retrieve a resource. It looks like you'd be
better off using the instance method GetImage(Type). This assumes that you'd
be using reflection to first obtain the types in the assembly and then, as
you loop through the types, checking to see if each one has a
ToolboxBitmapAttribute assigned. Then you'd get that ToolboxBitmapAttribute
instance and call the method, passing the type you're currently dealing
with. Off the top of my head I don't know if you'd need to instantiate the
type to get a ToolboxBitmapAttribute instance; I don't recall ever dealing
with attributes like that.