Question

Create a simple WPF application that consists of a simple form with three controls: 1.A text...

Create a simple WPF application that consists of a simple form with three controls: 1.A text box for entering messages 2.A label where the message is copied to 3.A copy button that when is clicked the message in the textbox is copied to the label Make sure that label font size is 14 and its text is aligned in the center with a red background color. The button has yellow background color. Anchor the textbox to Top. (Use Visual Studio 2019 or 2017) (Show code and output

0 0
Add a comment Improve this question Transcribed image text
Answer #1

//1.Below Class WindowForm1 Used for Enter Test into Command Box.

Public Class WindowForm1

Private Sub Button_Click(ByVal sender As system.Object, ByVal as e system.EventArgs )

Me.Close()

End Sub

//2.Below Class Button_Click1 Used for Copied Test into Command Box

Private Sub Button_Click1(ByVal sender As system.Object, ByVal as e system.EventArgs )

WindowForm2.Show()

End Sub

//3.Below Button_Click2 Used for Copied Test into Command Box in WindowForm2 Lable.

Private Sub Button_Click2(ByVal sender As system.Object, ByVal as e system.EventArgs ) Handles Button1.Click()

WindowForm2.Lable1.Test = Me.TestBox1.Test

End Sub

//3.Below WindowForm1_load Used for Copied Test into Command Box in WindowForm2 Lable with 14 size and baground coloue as a yellow.

Private Sub WindowForm1_load(ByVal sender As system.Object, ByVal as e system.EventArgs ) Handles Mybase.Load

"editor.fontsize" :14

"workbench.colorCustomizations": { "activityBar.background": "#00AA00" }

WindowForm2.Show()

End Sub

End Class

Program Explanation:-

1. Write any Class In visual studio.

2. Drag and drop one Command box and Lable.

3. Double click the command box and write above step1 code.

4. Double click on Lable and write the step2 and step3 code

5. Check out the click button write step4 code for font size and colour changes.

6. Execute program you will get proper output in your form2

Add a comment
Know the answer?
Add Answer to:
Create a simple WPF application that consists of a simple form with three controls: 1.A text...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create an application with the following requirements: 1 form graphic on the form itself, along with...

    Create an application with the following requirements: 1 form graphic on the form itself, along with various others depending on the graphics used You pick the form color or additional graphics The program should generate a random number(1 and 100). A label that asks the player to think of a number between 1 and 100. The player should be able to enter their guess into a textbox. The program should validate the users entry to make sure its: A number,...

  • Using C#: Create a Form that consists of 3 radio buttons, two textboxes, a label and...

    Using C#: Create a Form that consists of 3 radio buttons, two textboxes, a label and a button. The three radio buttons should represent the names of three fonts, e.g. “Arial”, “Calibri” and “Times New Roman”. In the one textbox, a user should type a message and in the other textbox, the user should type a size. When the user clicks the button, the label should be updated with the text the user typed in the one textbox, using the...

  • Subject: Advance application development Visual studio exercise The project is to create a simple Notepad style Tex...

    Subject: Advance application development Visual studio exercise The project is to create a simple Notepad style Text Editor. This will demonstrate the C# language basics. user interface controls and how to handle user events. Controls can be found in the Toolbox pane in its default location on the left side of the IDE, with the Control Properties pane on the right side of the IDE. Include the items on the following list in the program Create a C# Windows Forms...

  • Project 2 Description Create a Visual C# project that when an employee's biweekly sales amount is...

    Project 2 Description Create a Visual C# project that when an employee's biweekly sales amount is entered and the Calculate button is pressed, the gross pay, deductions, and net pay will be displayed. Each employee will receive a base pay of $1200 plus a sales commission of 8% of sales. Once the net pay has been calculated, display the budget amount for each category listed below based on the percentages given.         base pay = $1200; use a named...

  • Develop the Change Calculator application In this exercise, you’ll create an application that displays the minimum...

    Develop the Change Calculator application In this exercise, you’ll create an application that displays the minimum number of quarters, dimes, nickels, and pennies that make up the number of cents specified by the user. Without the use of a JavaScript Library (for coins). 1.      Open the HTML and JavaScript files below: 2.      In the JavaScript file, note that three functions are supplied. The $ function. The start of a calculateChange function. And an onload event handler that attaches the calculateChange...

  • In this exercise, you’ll upgrade a version of the MPG application so the error messages are...

    In this exercise, you’ll upgrade a version of the MPG application so the error messages are displayed in span elements to the right of the text boxes. Open the HTML and JavaScript files in this folder: exercises_short\ch06\mpg\ Then, run the application and click the Calculate MPG button to see that an error message is displayed in an alert dialog box for each of the two input fields. 2. In the HTML file, add a span element after the input element...

  • Can you solve this proble by using C# application? C# is one of programming languages supported...

    Can you solve this proble by using C# application? C# is one of programming languages supported by Visual Studio 2015. It combines the features of Java and C ++ and is suitbale for rapid application development. A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4% and the county sales tax rate is 2%. Create an...

  • C+ HelloVisualWorld, pages 121-125 (in the 3-6 Deciding Which Interface to Use Section) We were unable...

    C+ HelloVisualWorld, pages 121-125 (in the 3-6 Deciding Which Interface to Use Section) We were unable to transcribe this imageCHAPTER 3 Using Guy Objects and the Visual Studio IDE Using Gul Objects (continued) Forn click the Form, its Properties window appears in the lower right portion of the screen, and you can see that the Text property for the Form IS set to Forml. Take a moment to scroll through the list in the Properties Window, examining the values of...

  • Program using visual basic.net You will create a very simple two numbers calculator with save options;...

    Program using visual basic.net You will create a very simple two numbers calculator with save options; here is the specifications for the application. Create a form divided vertically in two halves with right and left panels 1- In the left panel you will create the following control, the label or the value of the control will be in "" and the type of the control will in [] a- "First Number" [textbox] b- "Second number" [texbox] c- "Result" [textbox] -...

  • Programming question. Using Visual Studio 2019 C# Windows Form Application (.NET Framework) Please include code for...

    Programming question. Using Visual Studio 2019 C# Windows Form Application (.NET Framework) Please include code for program with ALL conditions met. Conditions to be met: Word Problem A person inherits a large amount of money. The person wants to invest it. He also has to withdraw it annually. How many years will it take him/her to spend all of the investment that earns at a 7% annual interest rate? Note that he/she needs to withdraw $40,000.00 a year. Also there...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT