0

我有一个RichTextbox用作日志并添加一些内容的日志,我使用以下代码:

Font fontMsg = new Font("Tahoma", 8, FontStyle.Regular);
txtLog.SelectionFont = fontMsg;
txtLog.SelectionColor = Color.MediumVioletRed;
txtLog.SelectedText = "Connection.HTTP: Failed to connect!";
txtLog.SelectedText = "\r\n";

这非常有效,因为它一直附加到文本框,我不需要处理 rfc 代码。是否可以在不使用代码的情况下以相同的方式添加图像?谢谢!

4

0 回答 0