Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Give an example of goal-setting that is not technique related.

Answered: 1 week ago

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago