Question: Question: In this exercise, youll design a form that lets the user enter a number grade and then displays the letter grade when the user

Question:

In this exercise, youll design a form that lets the user enter a number grade and then displays the letter grade when the user clicks the Calculate button.

1. Start a new project named CalculateLetterGrade

2. Add the labels, text boxes, and buttons to the form as shown above. Then, set the properties of these controls as follows

Default name Property Setting
label1

Text TextAlign TabIndex

&Number grade: MiddleLeft 0
label2 Text TextAlign Letter grade: MiddleLeft
textBox1 Name TabIndex txtNumberGrade 1
textBox2 Name ReadOnly TabStop txtLetterGrade True False
button1 Name Text TabIndex btnCalculate &Calculate 2
button2 Name Text TabIndex btnExit E&xit 3

3. Now, set the properties of the form as follows

Default name Property Setting
Form1

Text AcceptButton CancelButton StartPosition

Calculate Letter Grade btnCalculate btnExit CenterScreen

4. Use the Form Designer to adjust the size and position of the controls and the size of the form so they look as shown above

5. Rename the form to frmCalculateGrade

6. Reenter the code from above into the text box.

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!