• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

fill textbox

I have data as list of (string), which I pull it from SQL. How can I fill textbox like this?

textbox1 ------------------------

address1
address2
address3
etc...

----------------------------------

instead of

textbox1 ------------------------

address1 address2 address3 etc...

----------------------------------
0
VBdotnet2005
Asked:
VBdotnet2005
  • 3
1 Solution
 
Jared_SCommented:
Make sure your textbox is set to multi-line.

Then replace the delimiters in your list with a line break.
0
 
VBdotnet2005Author Commented:
I don't need to loop through list of (string)?
0
 
VBdotnet2005Author Commented:
Like this?

listofmystring is List of (string)

address1
address2


for each tmp_string as listofmystrings
     textbox1.text &= tmp_string & "<br>"
next
0
 
VBdotnet2005Author Commented:
I got it. Thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now