在richtextbox中添加图像

时间:2013-01-15 08:04:12

标签: c# image richtextbox

我有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代码。是否可以在不使用代码的情况下以相同的方式添加图像?谢谢!

0 个答案:

没有答案