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: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:10
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
You know the right answer?
Create a WPF application named FirstInitialLastNameW3 Your application should include the followin...
Questions
question
Physics, 01.07.2019 07:20
Questions on the website: 13722367