When compared the text alignment with RichTextBox, behavior has changed from .Net4.6.1 to .Net4.8.
Any help on how the earlier behavior of .Net 4.6.1 can be achieved in .Net4.8?
public Form1()
{
InitializeComponent();
RichTextBox richTextBox1 = new RichTextBox()
{
Width = 300,
Height = 20,
Location = new Point(100, 100)
};
richTextBox1.Text = "中文_Dummy_Text";
TextBox textBox = new TextBox()
{
Width = 300,
Height = 20,
Location = new Point(100, 200)
};
textBox.Text = "中文_Dummy_Text";
this.Controls.Add(richTextBox1);
this.Controls.Add(textBox);
}
cp.ClassName = "RichEdit20W";
But realistically this is a simple mistake, just increase the Height a bit so the text can fit.