Simple question for a newbie about concatenates. I have three text boxes on a form. txtboxFirstName.Text txtboxLastName.Text txtboxEmailID.Text . The end result I am looking for is to concatenate the third text box with values from the first two text boxes. I have a very simple piece of code in my txtboxFirstName with the following.
txtboxEmailID.Text = txtboxFirstName.Text + txtboxLastName.Text
The result of this gives me the following output in the txtboxemailID.text: JaneDoe
So far this works as I need it to. Now what I want to do is at the end of the last name add our email address so the end result I am looking for in the txtboxEmailID.Text is :
My thought was to add another text box called txtemaildomain and have this on the form load:
txtemaildomain.Text = "@aol.com"
Then simply hide that textbox on my form and do the following: txtboxEmailID.Text = txtboxFirstName.Text + txtboxLastName.Text + txtemaildomain.Text
What is the proper syntax or more efficient way to add the @aol.com address to the end of the last name? Thanks in advance.