subject

Create a WPF application named FirstInitialLastNameW3 Your application should include the following in your Window: Title of Window – Escape the Form Font Family – your choice (readable and not the default) Font Size –15 min 20 max (but not too large to fit into controls) Size – Width 600 – Height - 300 1 Grid with 5 equal columns (Column 1 and Column 3 are dividers) Margin for grid should be 10 on all sides 3 TextBoxes - created in XAML – one in each column centered All 3 textboxes Horizontal Alignment – Center Vertical Alignment – Center Width/Height – 100/50 Name – Descriptive with tbx prefix 3 Labels to identify the 3 textboxes Horizontal Alignment – Center Vertical Alignment – Top Width/Height – 100/50 1 Button Button – created in XAML Name – btnCheck Content – ""Check Code"" Vertical Alignment – bottom of the middle column Horizontal Alignment - centered Width/Height 100/30 CODE 3 global integer variables Window_Loaded Event Setup a random number variable Set each of your global integer variables to a random number between 0 and 9 Display a message box with the title ""Instructions"" and ""Enter a digit 0-9 in each box to guess the code to escape the form"" btnCheck Click event 3 integer variables Parse the data from all three textboxes and place in the 3 variables Use a series of if/else statements to accomplish the following: If the number entered in the first textbox is equal to the random number generated for the first variable Set the background color of the first textbox to blue Set the IsEnabled property to false. If the number entered in the first textbox is NOT equal to the random number generated for the first variable Clear the first textbox Repeat the above steps for the other two textboxes/random numbers If the user gets all 3 numbers correct there should be a message box letting them know they escaped. Add an appropriate title and message.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
question
Computers and Technology, 24.06.2019 23:30
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
Answers: 1
You know the right answer?
Create a WPF application named FirstInitialLastNameW3 Your application should include the following...
Questions
question
English, 10.12.2021 22:50
question
Mathematics, 10.12.2021 22:50
question
Mathematics, 10.12.2021 22:50
Questions on the website: 13722367