Click here to Skip to main content
15,918,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a basic program where I enter something in a text box and when I click enter, the data shows up in a multi-line textbox. Until I close the form, each time I enter new data and hit enter, the data will appear at the bottom of the multi-line textbox without overwriting or erasing what is already there. How would I code this in VB.net?
Posted

I would just set the text to textbox1.Text=strText;
Or simply clear the text box.
 
Share this answer
 
v3
Code what? Your question is not very clear at all.

Like the other person said, if you want to replace the text in the TextBox, just assign the new value to its Text property.

If you want to append new text to what's already in the TextBox, use its Append() method.
 
Share this answer
 
MIDL
textbox1.MultiLine=true;
textbox1.ScrollBars=Vertical;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900