RichTextBox Problem
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Problem: Hidden text not being set for RichTextBox initialized in an MDI Child Form. Initialize a RichTextBox in an MDi Child form: RichTextBox rtb = new RichTextBox(); rtb.SelectedRtf is initially set to empty string. Expected result is (rtb.SelectedRtf == "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033\\uc1 }\r\n"). Also set rtb.SelectedRtf = @"{\rtf1\ansi " + "visibleText" + @"\v " + "hiddenText" + @"\v0}"; The result is rtb.Text = "visibleText". (rtb.Text should be "visibleTexthiddenText"). i.e. the hidden text is not being updated when rtb is initialized in an MDIChild. Anyone know the cause/workaround? Your help is appreciated. Thanks, B