Connecting multiple text of the each textboxes

已答复 Connecting multiple text of the each textboxes

  • Tuesday, March 13, 2012 11:44 AM
     
     

    Hi everyone, Could anybody help me please? I have firstname, middle initial and last name,  with each have its own textboxes,

    Now what I need is to combine the 3 of them for example I inputed this:

    Jan

    K.

    David

    the result would be

    Jan k. David

    So far this is my codes:

    Dim whole As String
            Dim first As String = Val(txtFirstname.Text)
            Dim middle As String = Val(txtMiddlename.Text)
            Dim last As String = Val(txtLastname.Text)
            whole = first + " " + middle + " " + last
            txtSample.Text = whole

    Thank you and Godbless..^^

All Replies