Question: 1. The txtCity control contains the word London followed by two spaces. Which of the following statements removes the two spaces from the controls contents?

1. The txtCity control contains the word “London” followed by two spaces. Which of the following statements removes the two spaces from the control’s contents?

a. txtCity.Text = txtCity.Trim

b. txtCity.Text = Trim(txtCity.Text)

c. txtCity.Text = txtCity.Text.Trim

d. none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming with Microsoft Visual Basic 2015 Questions!