المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Text of ToolStripItem derived objects won't appear when added to a ContextMenuStrip



C# Programming
02-03-2010, 10:53 PM
hello, i have a class like this

class CustomItem : ToolStripItem
{
public CustomItem(Data data)
{
this.text = data.name;
}
}

When i add these objects to a ContextMenuStrip, the text property has data.name in it but what i get is a ToolStripItem without any visible text and i really can't understand why. It worked fine when i used ToolStripMenuItems though...