vb.net - Append text to a textbox VB -
vb.net - Append text to a textbox VB -
i attempting append info textbox in vb. app allows user take variety of options , displays info in single, read-only text box.
i set every time event triggers written in text box, gets appended instead of overwriting text in box.
i have seen solutions online lot of them seemed overly complicated task. if has simple solution, much appreciated.
the constraint text should appended new line, not straight after lastly sentence.
thank
private sub addline(byval line string) me.txtthetextbox.text = if(me.txtthetextbox.text = string.empty, line, me.txtthetextbox.text & controlchars.crlf & line) end sub
vb.net
Comments
Post a Comment