Question: The txtState control contains the word Alaska followed by one space. Which of the following statements removes the space from the controls contents? a. txtState.Text

The txtState control contains the word Alaska followed by one space. Which of the following statements removes the space from the control’s contents?

a. txtState.Text = txtState.Text.Trim

b. txtState.Text = Trim(txtState.Text)

c. txtState.Text = txtState.Trim

d. txtState.Text.Trim

Step by Step Solution

3.44 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a txtS... View full answer

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!