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

  A method to calculate the value of the entire inventory

Create a method to calculate the value of the entire inventory. Create another method to sort the array items by the name of the product.

  Scripting language programming in perl

course Scripting Language Programming,  Assignment   -  Perl,  ? Your coding style should conform to general Perl coding conventions. Your scripts should be clean, neat, and well-formatted (e.g. indention). Identifiers should also be properly name..

  Create the program for iteration control structure

Iteration Control Structure create the program which models worm's behavior - Worm can enter apple when it is in body length of apple.

  Write the program using the ide functions

Write the program using the IDE functions. Rewrite the program using C and not the IDE functions. Again, submission are in txt only files.

  Compute and display number of miles per hour

Once correct data has been entered, the program muts compute and display number of miles per hour over the speed limit that the driver was doing.

  Write program to prints the question

Write a program that prints the question"do you want to continue?" and reads a user input. if the user input is"y", "yes", "ok", "sure", or "why not?".

  Activity for pdus on project management institute-s web site

Several activity categories are given as qualifying for PDUs on project Management Institute's Web site. Recognize  these categories. In which categories would you place Chris's experience?

  Program prompt teacher to input student number

The program must prompt teacher to input student number. Quiz score for that student will be displayed. Program can prompt for each quiz score.

  Formulae to calculate their center point

Given n points in the 3D space (xo, yo, zo), (x1, y1, z1), (xn-1,yn-1, zn-i), we use the following formulae to calculate their center point (xc, yc, zc)

  Program to simulate the operation of the simmac

CISC 640 - OS Problem Set - Write three programs in the machine language of the SIMMAC that will total the numbers stored in 20 different locations and place the result in a single location.

  Explore the game of roulette

Your assignment is to use a random number generator to explore the game of roulette. Despite the true mathematics of the matter, "0" is considered neither "odd" nor "even" when someone bets on the ball landing in an odd or even slot

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