Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:40, Courtneymorris19
The most complicated four letter word
Answers: 1
image
Computers and Technology, 22.06.2019 23:50, Emptypockets451
You need to design a circuit that implements the functions in the following table: s0 s1 function0 0 a + 10 1 a – b1 0 a + b1 1 a – 1s0 and s1 are 1-bit control inputs to select the function of the circuit. inputs a and b are 4-bitnumbers in 2s complement form. the output is also a 4-bit number in 2s complement form. you are allowed to use only one ttl 7483 4-bit adder to implement all the functions. but anynumber of other components (except the adder) can be used. hint: design a combinational logic circuit to modify the input b and the “carry input” of theadder depending on the control inputs s0 and s1.important: lab grade will depend on the working of the circuit & will be checked of by your labinstructor.1. is the output valid for the following input combinations: a. s0 = 0, s1 = 0, a = 7, b = 3? b. s0 = 0, s1 = 1, a = 7, b = 3? c. s0 = 1, s1 = 0, a = -4, b = -5? d. s0 = 1, s1 = 1, a = -8, b = 6? 2. what is the range of inputs (for both a and b) that will produce the valid output for all the functions?
Answers: 3
image
Computers and Technology, 23.06.2019 07:30, devnnn44
What is the original authority for copyright laws
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, delawdermia27
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
Do you know the correct answer?
Create a WPF application named FirstInitialLastNameW3 Your application should include the followin...

Questions in other subjects: