There has to be a better way?

Here is what I am using at the mo and although it works I just feel there has to be a better way


Private Sub BtnAccept_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAccept.Click

TxtWord.Text = (Label1.Text + Label2.Text + Label3.Text + Label4.Text + Label5.Text + Label6.Text + Label7.Text + Label8.Text)

End Sub


Answer this question

There has to be a better way?

  • jjjames

    In terms of efficiency, stringbuilder is a better way. Beyond that, nothing springs to mind except to wonder why you have 8 text boxes combining for one value



  • There has to be a better way?