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, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
You know the right answer?
Create a WPF application named FirstInitialLastNameW3 Your application should include the followin...
Questions
question
Computers and Technology, 21.10.2020 06:01
question
Mathematics, 21.10.2020 06:01
question
Mathematics, 21.10.2020 06:01
Questions on the website: 13722363