Hi Pavel,
I performed a test on this issue. In my test, I create a UserControl and override the Text property as follows:
[BrowsableAttribute(true)]
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
}
}
I add this UserControl on a form and see that the value of the Text property is an empty string in the Properties window. Modify the value of the Text property andright clickto choose Reset command andthe value is reset to an empty string. So the "UndoEngine" works for the Text property.
>My problem is this property is set to empty string when I delete the component and use Undo (UndoEngine) later.
Could you tell me what you mean in the above sentence? You'd better show usthecode ofoverride Text property in your project.
I look forward to your reply.
Sincerely,
Linda Liu