Question: Question 1 You are given a form with three TextBoxes. One of them is name txtFirstName , the other txtLastName , and the last one

Question 1

You are given a form with three TextBoxes. One of them is name txtFirstName, the other txtLastName, and the last one txtCount. The initial values for txtCount is 0, and for first name and last name are empty string.

Write the following code.

1a. Save the text in all the TextBoxes into three variables. Use proper types.

2b. Remove Any trailing spaces with Trim.

3c. Check if the first name and the last name are the same.

4d. If they are the same, output using a message box. "First Name and Last Name are the same". Then, increment the counter variable that you obtained from txtCount and update txtCount with this new value.

5e. If there are NOT the same, then set txtCount to zero, and output in a message box "First Name: Francisco -- Last Name: Ortega", assuming that the user type Francisco and Ortega in each respective textboxes.

Question 2

Describe the steps required to create a simple application with one form, one text box, and one button in Visual Studio (IDE).

How do you change the name of the form using the Property box?

Describe at least 5 additional properties you can change in either the form, the textbox, or the command button.

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 Databases Questions!