hello!
I wanted to know how can I change the little picture when creating a new custom control. I mean the picture that appear in the toolbox when adding the control to the list of the controls.
thanks![]()
hello!
I wanted to know how can I change the little picture when creating a new custom control. I mean the picture that appear in the toolbox when adding the control to the list of the controls.
thanks![]()
Straight from MSDN:
Code:' Visual Basic ' Specifies the bitmap associated with the Button type. <ToolboxBitmap(GetType(Button))> Class MyControl1 ' Specifies a bitmap file. End Class <ToolboxBitmap("C:\Documents and Settings\Joe\MyPics\myImage.bmp")> _ Class MyControl2 End Class ' Specifies a type that indicates the assembly to search, and the name ' of an image resource to look for. <ToolboxBitmap(GetType(MyControl), "MyControlBitmap")> Class MyControl End Class
Close Counts for Horseshoes, Handgranades, and Nuclear Missiles!
thank you very much, I didn't know it's so easy
if someone would like the source from MSDN it's: Providing a Toolbox Bitmap for Your Control
thanks again!
Bookmarks