pojowsh技术开发之家

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月27日

摘要: 富文本框以指定颜色输出指定文字//输出消息 private void OutMsg(RichTextBox rtb, string msg, Color color) { rtb.Invoke(new EventHandler(delegate { rtb.SelectionStart = rtb.Text.Length;//设置插入符位置为文本框末 rtb.SelectionColor = color;//设置文本颜色 rtb.Ap... 阅读全文
posted @ 2012-03-27 20:18 pojowsh 阅读(3170) 评论(0) 推荐(0)