Page 1 of 1

Visual Basic 2005 Express Edition Question

Posted: Tue Apr 04, 2006 5:45 am
by sarge derek
Ok im trying to make like an HTML helper so whenever you click on button, for example labeled Image it would come up with HTML tag for an image in the richtextbox. Ive gotten the code to come in the richtextbox but whenever you click another button it replaces the code already in there...how could i get it so it just goes after the text already in there.

Posted: Tue Apr 04, 2006 5:53 am
by xzodia
txtboxname = txtboxname + "New code here"

Posted: Tue Apr 04, 2006 4:11 pm
by sarge derek
thanx! i completely forgot about the + sign lol, it was textboxname= textboxname.text + "blahblahblah"

Posted: Sat Apr 08, 2006 6:28 am
by modder4321
Sarge Derek wrote:thanx! i completely forgot about the + sign lol, it was textboxname= textboxname.text + "blahblahblah"
or just

textboxname.text &= "w/e"

textboxname.text += "w/e"

both work