Displaying data in one multiline textbox

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

Hello, all I want to do is display details such as name, surname etc
which are read from a database into 1 multiline textbox. I am able to
display name and thats about it. My code looks like this :

For Each objCurrentrow In drrows

txtdetails.Text = objCurrentrow("Firstname")


If I repeat this line of code then it overwrites the first line.
Probably quite simple but not for me!

Thanks in advance

E
 
Hi Ian,

This is not the best methode if it is very much but try this first if you
are a beginner.
(better is to make first with stringbuilder a string and than add that to
the textbox)

txtdetails.Text = txtdetails.Text & objCurrentrow("Firstname")

I hope this helps,

Cor
 
Back
Top