Hi,
Using build 1945.
I'm using the #Develop TextEditor control in a C# project. When I drop the control on a WinForm and set the Text property it gets set at design time OK. However, when I run the code the Text property is not passed to the run time instance and the text area is thus blank. Also if I close the solution and open it again the Text property value is blank again.
Fix is to add:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
just before the declaration "public override string Text" in TextEditorControlBase.csthus becoming:
thus becoming:
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public override string Text {
get {
return Document.TextContent;
}
set {
Document.TextContent = value;
}
}
regards,
DAN