RichTextBox1.Text = "中国人大常委会sdfsdfasdfsdfsddf"
RichTextBox1.SelStart = 0RichTextBox1.SelLength = 2RichTextBox1.SelColor = vbBlueRichTextBox1.SelStart = 10RichTextBox1.SelLength = 2RichTextBox1.SelColor = vbGreen

解决方案 »

  1.   

    RichTextBox1.SelStart = 1    '设定选中文本的开始RichTextBox1.SelLength = 10  '设定选中文本的长度RichTextBox1.SelAlignment    '这个属性是设定对齐方式RichTextBox1.SelBold         '选中文本是否粗体RichTextBox1.SelColor        '选中文本的颜色RichTextBox1.SelFontName     '选中文本的字体RichTextBox1.SelFontSize     '选中文本的字号…………只要设定相应的值就可以了,还有许多属性,可以看VB的帮助。
     
      

  2.   

    {\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fmodern\fprq6\fcharset134 \'cb\'ce\'cc\'e5;}}
    {\colortbl ;\red0\green128\blue0;\red255\green0\blue0;}
    \viewkind4\uc1\pard\lang2052\f0\fs20 a\cf1 sldkjalksd\cf0 hklahs\cf2 ldhalsdhalhsdlah\cf0 sd\par
    }
    rtf文件内容(随便写的),可能和html差不多,谁知道那些标记什么意思?