ToolBox Icon - VS2008
-
I'm using Visual Studio 2008 Professional and can't get any other icon to display apart from the default 'gear'. I'm not trying to use my own bitmap - just one from the built in controls. I'm adding this attribute:
[System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.TextBox))]
I've tried with with a user control, component and a simple class that inherits from TextBox but none of them work. I'm sure I had this working in 2005 - is it a 2008 issue?Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
I'm using Visual Studio 2008 Professional and can't get any other icon to display apart from the default 'gear'. I'm not trying to use my own bitmap - just one from the built in controls. I'm adding this attribute:
[System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.TextBox))]
I've tried with with a user control, component and a simple class that inherits from TextBox but none of them work. I'm sure I had this working in 2005 - is it a 2008 issue?Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Wierd. If I complie the control to a dll and then add it to the toolbox via Choose Items it shows the icon.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)