vb.net - Remove first 27 characters from each line in richtextbox -
how go removing first 27 characters each line in richtextbox?
i have tried
for each in richtextbox1.lines = richtextbox1.text.remove(0, 27) next
if want preserve formatting in richtextbox, way:
private sub button1_click(sender object, e eventargs) handles button1.click integer = 0 richtextbox1.lines.length - 1 dim index integer = richtextbox1.getfirstcharindexfromline(i) richtextbox1.select(index, math.min(27, richtextbox1.lines(i).length)) richtextbox1.selectedtext = "" next end sub
Comments
Post a Comment