| 发表于:2007-06-22 13:08:101楼 得分:80 |
private const cstrtemp as string = "wahaha " private sub command3_click() richtextbox1.text = mid(richtextbox1.text, 1, len(richtextbox1.text) - len(cstrtemp) - 1) end sub private sub form_load() with richtextbox1 .text = richtextbox1.text & vbcrlf & cstrtemp .selstart = len(richtextbox1.text) - len(cstrtemp) .sellength = len(cstrtemp) .selcolor = vbblue end with end sub | | |
|