Windows Develop Bookmark and Share   
 index > Windows Forms Designer > ToolboxBitmap doesn't work
 

ToolboxBitmap doesn't work

Hi,
I'm trying to associate TextBox's image with my UserControl that contains TextBox and Label...

I've put an Image with the name of the control in the project folder and it works, but when I try the following, iI just see the standard wheel (for custom control):

[
ToolboxBitmap(typeof(System.Windows.Forms.TextBox))]
public partial class MyTextBox :
UserControl

Any ideas???
Thanks, Marina

{

MarinaGre  Tuesday, September 20, 2005 3:41 PM
That should work just fine, but the "My UserControls" tab doesn't use the bitmap for controls that the IDE automatically places there. Is this where you're seeing the default image?
Mick Doherty  Tuesday, September 20, 2005 8:45 PM
Hi...
 What I'm trying to do is to list all the controls in a form with their images in a treeview (like document outline), but most of my controls in a form are UserControls so I don't want to show a "wheel" for those. I want MyTextBox: UserControl to show TextBox image, but for some weird reason it doesn't work (by the way I'm using .net 2.0)...

Thanks, Marina 
MarinaGre  Wednesday, September 21, 2005 6:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Error in Windows Forms Designer VS 2005
• Error deletes all buttons in ‘BindingNavigationbarâ€
• How to serialize a previously untyped DataSet that has been modified by another Component in Design time?
• displaying zero with single digit int
• Inheritence With Inheritence Picker????
• UserControls in datagrid/repeater
• Finding Design Time assembly
• Inherited forms
• how to keep ours form on top (in front) by using VB
• Let the end-user design at runtime