Question: Create a VB.NET program, named Test1, in MS Visual Studio 2015. Do not use KeyPress or TextChanged event on the test. The Form 1. The

Create a VB.NET program, named Test1, in MS Visual Studio 2015.
Do not use KeyPress or TextChanged event on the test.
The Form 1.
The title is Test 1 it has no ControlBox. The size is (700, 400) and FormBorderStyle is FixedSingle.
The StartPosition is CenterScreen and WindowState is Normal.
2. The AcceptButton is Button JUST DO IT and the CancelButton is button EXIT. Three Textboxes and Labels
3. There are three textboxes of the default size (100, 20), named txtNum1, txtNum2, and txtResult.
4. They are aligned on left with same vertical distance between them.
5. Each textbox has a label above it, and the text of the labels is Num1, Num2 and Result (Num1 / Num2), respectively.
6. The back color of two txtNum1 and txtNum2 is Window (the default), the TextAlign is left, and they are not ReadOnly.
7. The back color of txtResult is Window, the same as txtNum1 and txtNum2, but the TextAlign is right, and it is ReadOnly.
Two Command Buttons
8. There are two buttons to the right of the textboxes. They are aligned on the left with some vertical space between.
9. The text is JUST DO IT and EXIT respectively, and the underlined characters indicate the Access Key.
10. All controls (textboxes, labels and buttons) as a group is centered both vertically and horizontally on the form. Event Procedures
11. Clicking on button EXIT will terminate the program.
12. Clicking on button JUST DO IT will compute the quotient of Num1 / Num2 and display the result in the txtResult when the text of txtNum1 represents a number and the text of txtNum2 represents a non-zero number.
13. If the text of txtNum1 does not represent a number (including the case the text is like 12e3), a message Num1 is invalid! will be displayed, and the focus will go to txtNum1. Textbox txtNum2 will not be checked if txtNum1 is invalid.
14. If the text of txtNum2 does not represent a number (including the case the text is like 12e3), a message Num2 is invalid! will be displayed, and the focus will go to txtNum2.
15. If the text of txtNum2 represents a value of zero, a message Cannot divide by zero! will be displayed, and the focus will go to txtNum2.
16. The result will be displayed in Standard format. For example, when Num1 is 2 and Num2 is 3, the result should be 0.67.
Tab Order 17.
Textbox txtNum1 has the focus at the beginning.
18. When the tab key is pressed, the focus will go to txtNum2, btnJustDoIt, btnExit, and back totxtNum1. Textbox txtResult will not accept focus when the tab key is pressed.

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!