Question add text to the end of a string in a Textbox

darrenbooy

Member
Joined
Mar 16, 2009
Messages
8
Programming Experience
Beginner
Sorry guys I know this is VERY easy question, I am shoestringing my app together at the moment so miss some fundemental basics.

I just want to add text to the end of a string within a textbox like so:

The process

textbox1.text = "FP1" 'each of these lines appear at different places
textbox1.text = "FP2"
textbox1.text = "FP3"

The Result
(graphical representation of textbox1.text)
FP1FP2FP3

I know it is something like textbox.1.text = &_ "Fp1" ??????????

HELP! (really pressed for time!):eek::eek:
 
Hello.

Add a String to the end of a String:
VB.NET:
YourString &= secondString 'equals YourString = yourString & secondString
If you're stripping together a large String, use StringBuilder (found in the System.text Namespace) and it's Append-Method().

Add a String to a String with a Linebreak:
VB.NET:
yourString &= secondString & Environment.NewLine

Additionally the Textbox must have it's Multiline Property set to True.

Bobby
 
Back
Top