Create a project named animated with a form

Assignment Help Programming Languages
Reference no: EM131292298 , Length:

Question 1. Locate an animated .tif file on the Web. Create a project named Animated with a Form that contains a PictureBox. Display three different messages on a Label-one when the user's mouse is over the PictureBox, one when the mouse is not over the PictureBox, and one when the user clicks the PictureBox.

Question 2. Emma's Custom Embroidery sells shirts with detailed embroidered images. Emma allows users to select the color for a shirt, but she allows only specific embroidery designs with each shirt color. Create a project named EmmasEmbroidery that allows a user to choose one of four shirt colors from a ListBox-white, black, red, or blue. When the user selects a shirt color, the program should display a second ListBox that contains the following embroidery design choices:

- White shirt-peacock, palm tree, or rose
- Black shirt-race car, star, or moon
- Red shirt-palm tree or moon
- Blue shirt-peacock or moon

After the user selects an embroidery design, the program should display a congratulatory message on a Label indicating that the choice is a good one, and the design ListBox also becomes invisible. If the user makes a new selection from the shirt color ListBox, the congratulatory message is invisible until the user selects a complementary design.

Hint: You can remove the entire contents of a ListBox using the Items.Clear() method, as in this.listBox1.Items.Clear();.

Question 3. Create a project named GuessANumber with a Form that contains a guessing game with five RadioButtons numbered 1 through 5. Randomly choose one of the RadioButtons as the winning button. When the user clicks a RadioButton, display a message indicating whether the user is right.

Add a Label to the Form that provides a hint. When the user's mouse hovers over the label, notify the user of one RadioButton that is incorrect. After the user makes a selection, disable all the RadioButtons.

Question 4. Create a project named PickLarger with a Form that contains two randomly generated arrays, each containing 100 numbers. Include two Buttons labeled "1" and "2". Starting with position 0 in each array, ask the user to guess which of the two arrays contains the higher number and to click one of the two buttons to indicate the guess. After each button click, the program displays the values of the two compared numbers, as well as running counts of the number of correct and incorrect guesses. After the user makes a guess, disable the Buttons while the user views the results. After clicking a Next Button, the user can make another guess using the next two array values. If the user makes more than 100 guesses, the program should reset the array subscript to 0 so the comparisons start over, but continue to keep a running score.

Answer the following questions-

1. The EventArgs class contains a static field named __________.
a. Empty
b. Text
c. Location
d. Source

2. When creating events, you can use a predefined delegate type named __________ that is automatically provided by the .NET Framework.
a. EventArgs
b. EventHandler
c. EventType
d. Event

3. Which of the following is not a predefined Control event?
a. MouseEnter
b. Click
c. Destroy
d. TextChanged

4. A single Control can raise __________ event(s).
a. one
b. two
c. five
d. any number of

5. When you create Forms with Controls that raise events, an advantage to creating the code by hand over using the Visual Studio IDE is __________.
a. you are less likely to make typing errors
b. you save a lot of repetitious typing
c. you are less likely to forget to set a property
d. you gain a clearer understanding of the C# language

6. When a Form contains three Controls and one has focus, you can raise an event by __________.
a. clicking any Control
b. pressing Enter
c. either of these
d. none of these

7. The TabStop property of a Control is a(n) __________.
a. integer value indicating the tab order
b. Boolean value indicating whether the Control has a position in the tab sequence
c. string value indicating the name of the method executed when the Control raises an event
d. delegate name indicating the event raised when the user tabs to the Control

8. The TabIndex property of a Control is a(n) __________.
a. integer value indicating the tab order
b. Boolean value indicating whether the Control has a position in the tab sequence
c. string value indicating the name of the method executed when the Control raises an event
d. delegate name indicating the event raised when the user tabs to the Control

9. The Control that causes an event is the __________ argument to an event method.
a. first
b. second
c. third
d. fourth

10. Which of the following is true?
a. A single event can be generated from multiple Controls.
b. Multiple events can be generated from a single Control.
c. Both of the above are true.
d. None of the above are true.
(Farrell 668-669)

Farrell, Joyce. Microsoft Visual C# 2012: An Introduction to Object-Oriented Programming, 5th Edition. Cengage Learning, 20130304. VitalBook file.

Verified Expert

This assignment uses C# window form. Totally 4 windows forms is designed together with this 10 choice based question is answered. The c# windows form displays a picture box together with the label. The label display the action performed by the user on the picture box. Another windows form uses a Listbox which is used to select the shirt color and embroidery design choices for each of the shirt color. The third windows form uses a group radio buttons and label. This application pick a number and make the user to guess the number. The fourth windows form uses two arrays of 100 numbers each. The user is made to guess which of the two array element is large and thus the count on number of loss and gain is stored and displayed

Reference no: EM131292298

Questions Cloud

Develop a thesis pertaining to the assigned film text : Develop a thesis pertaining to the assigned film text and whether or not it, the film, in your view has the power to transform one's political sensibilities.
Strategic controls and financial controls : What is organizational structure and what are organizational controls? What are the differences between strategic controls and financial controls? What is the importance of these differences?
Discuss about the chess and its featuers : What are his main reasons and examples for his claim that "American democracy" is a myth? Probe his reasons and examples with questions before justifying your agreement or disagreement with his argument.
How were business and businesspeople portrayed : Is there anything business could or should do to improve its media image? Some businesses try to stay out of the limelight. Why might that be? What do you think of that strategy?
Create a project named animated with a form : Create a project named GuessANumber with a Form that contains a guessing game with five RadioButtons numbered 1 through 5. Randomly choose one of the RadioButtons as the winning button.
Operating characteristics of the five basic modes : Compare and contrast the operating characteristics of the five basic modes of transportation. Define the roles and responsibilities of the participants or parties of the transportation system. Describe the principles of economies of distance, weight,..
Prepare a partial balance sheet : The United States court system consists of state and federal courts. Before a court can entertain a case, it must determine whether or not it has the authority (jurisdiction) to do so. Subject matter jurisdiction limits the type of case a particular ..
To overcome obstacles business or personal : To overcome obstacles business or personal, you must master the three obstacles above. What are your ideas?
What role did american communists play in the labor movement : What role did American communists play in the labor movement during the Depression? What were the Unemployed Councils?

Reviews

inf1292298

11/28/2016 7:07:10 AM

Thank you for your assistance. The paper is delightfully prepared and greatly coherent. It is accurate and addresses all the critical requirements that I trust I will be inquired. It is additionally solved on a level of factual and exploration investigation that I can get it. Your work is very useful. Thanks again.

len1292298

11/27/2016 11:55:38 PM

I am taking C# class.NOT C++. Ihave had no credit for past three assignments. C# and Vision Studio or express GUI. Thank you very much. Farrell, Joyce. Microsoft Visual C# 2012: An Introduction to Object-Oriented Programming, 5th Edition. Cengage Learning, 20130304. VitalBook file.

Write a Review

Programming Languages Questions & Answers

  Design and write a program

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

  Compare three generations of programming languages

Compare and contrast at least three generations of programming languages. Be sure to include in your discussion: semantics, syntax, and machine dependence.

  Problem in both iterative approach and recursive approach

Solve the problem in both iterative approach and recursive approach, compare the time between them and briefly discuss which one works faster and why.

  Find number values that are between given range

Suppose the values from aaa.txt have been loaded into array Bob: find out the number values in Bob that are between 0 and 4 (not inclusive).

  Determine the output of the given program what will happen

question what is the output of the following program?class exception2 public static void mainstring args

  Write a main program that first reads all available meals

Write a main program that first reads all available meals from a file called menu.txt. Write a function called create_event. This function is be called if a customer of the company wants to book an event.

  Describe the most challenging aspect of the assignment

Describe the most challenging aspect of the assignment. Describe the most difficult aspect of the assignment to understand. Provide any suggestions for improving the assignment in the future.

  Determine average cpi for program for clock cycle time

The table above illustrates the execution time of two different compiled programs. Determine the average CPI for each program given that processor has clock cycle time of 1 nS.

  Explaining graphics as user experience on web sites

Graphics provide significant richness to the user experience on web sites. Discuss how each of these sites uses graphics in good or poor ways.

  Create a single form home utility audit program

Create a single form Home Utility Audit Program using Visual Studio Desktop 2013, VB.Net. I have most of it except the * parts in specific requirements

  Define and create an exception

Quotient throws an exception to the higher-level function main to decide whether or not the program should be terminated. Main catches the divByZero and prints out an appropriate comment on the screen. Also include in main a try block to catch the..

  How to stream data from a a file

How to stream data from a a file.How to stream data from a a file.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd